What’s Vulnerable › Vulnerabilities

CVE-2025-13034: No QUIC certificate pinning with GnuTLS

Description

When using `CURLOPT_PINNEDPUBLICKEY` option with libcurl or `--pinnedpubkey` with the curl tool, curl should check the public key of the server certificate to verify the peer. This check was skipped in a certain condition that would then make curl allow the connection without performing the proper check, thus not noticing a possible impostor. To skip this check, the connection had to be done with QUIC with ngtcp2 built to use GnuTLS and the user had to explicitly disable the standard certificate verification.

Affected products

How to fix

Upgrade to a fixed version: curl 8.18.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-13034 or the next vulnerability affects your stack