CVE Database›CVE-2025-13034

CVE-2025-13034

curl: Public key pinning bypass via QUIC and GnuTLS allows server impersonation

Loading…

Severity

Moderate

Red Hat Product Security

6.8

CVSS 3.1

Review impact separately from score.

Published · January 7, 2026

Updated · September 15, 2026

Description

A flaw was found in curl. When configured to use public key pinning with QUIC connections and GnuTLS, and with standard certificate verification explicitly disabled, curl could bypass the intended public key check. This oversight allows a malicious server to impersonate a legitimate one, potentially leading to unauthorized access or information disclosure due to a failure in verifying the server's identity.

Statement

This vulnerability is rated Low for Red Hat products. The flaw in curl occurs only when using CURLOPT_PINNEDPUBLICKEY with QUIC and ngtcp2 built with GnuTLS, and when standard certificate verification is explicitly disabled. This specific combination of features and configuration is uncommon in Red Hat deployments, limiting the overall impact.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this issue, ensure that standard certificate verification is not explicitly disabled when utilizing CURLOPT_PINNEDPUBLICKEY or --pinnedpubkey with curl. This practice prevents the bypass of the pinned public key check, particularly in configurations involving QUIC and ngtcp2 built with GnuTLS. Always verify server certificates through standard means to maintain secure connections.

CVSS / CWE

CVSS 3.1 · 6.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

CWE-295 · Improper Certificate Validation