Description
When built with wolfSSL, curl can successfully validate a pinned public key
hash against a key the TLS peer does not possess. During the TLS handshake,
wolfSSL validates the connection, but curl's subsequent re-parsing of the same
certificate - tricked by a manipulated validity length field - extracts and
matches a different embedded key, incorrectly authorizing the pinned public
key.
Published: 2026-10-20
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Public Key Pinning Bypass
Action: Apply Patch
AI Analysis

Impact

When curl is compiled with the wolfSSL backend, the client may validate a pinned public key hash against a key that the TLS peer does not actually present. During the TLS handshake, wolfSSL performs standard validation, but curl subsequently re‑parses the same certificate. A crafted certificate containing a manipulated validity length field causes curl to extract a different embedded key, which then matches the pinned key hash, leading the client to incorrectly authorize the pin. The consequence is that an attacker can impersonate a legitimate server, enabling man‑in‑the‑middle attacks and data manipulation. This weakness is a CWE‑295 authentication flaw involving certificate validation.

Affected Systems

The affected product is the open‑source curl client when compiled with the wolfSSL backend. No specific version ranges are provided in the advisory, so all builds that include the wolfSSL backend and have the certificate parsing bug are potentially vulnerable. The vulnerability applies to any system that connects to a malicious server using this configuration.

Risk and Exploitability

The CVSS score of 9.1 indicates a high overall severity, and the EPSS score is < 1%. The flaw is not listed in the CISA KEV catalog. The likely attack vector is remote, accessed by a malicious server that presents a crafted certificate to a curl client over an insecure network. An attacker would need to control the server side or compromise a target host that connects to the malicious server; the exploitation does not require local code execution or elevated privileges on the client. Because the vulnerability exploits a certificate parsing bug, success hinges on the client performing the TLS handshake with a modified validity field.

Generated by OpenCVE AI on October 29, 2026 at 21:09 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a curl version where the wolfSSL backend certificate parsing bug is fixed; consult the vendor’s release notes to confirm the fix.
  • If upgrading is not possible immediately, disable or remove public key pinning for connections that use the wolfSSL backend, or enforce strict certificate validation using alternative libraries or backends.
  • Monitor outbound TLS traffic for abnormal handshake patterns and flag certificates with unusually long or conflicting validity periods.

Generated by OpenCVE AI on October 29, 2026 at 21:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 31 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 29 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Tue, 20 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in curl. This vulnerability allows a malicious server to bypass public key pinning when curl is built with the wolfSSL backend. By presenting a specially crafted certificate with a manipulated validity length field, the attacker can trick curl into improperly re-parsing the certificate and authorizing an invalid key during the Transport Layer Security (TLS) handshake. When built with wolfSSL, curl can successfully validate a pinned public key hash against a key the TLS peer does not possess. During the TLS handshake, wolfSSL validates the connection, but curl's subsequent re-parsing of the same certificate - tricked by a manipulated validity length field - extracts and matches a different embedded key, incorrectly authorizing the pinned public key.
Title curl: curl: wolfSSL public-key pinning bypass wolfSSL public-key pinning bypass
References

Sun, 18 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl

Sat, 17 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in curl. This vulnerability allows a malicious server to bypass public key pinning when curl is built with the wolfSSL backend. By presenting a specially crafted certificate with a manipulated validity length field, the attacker can trick curl into improperly re-parsing the certificate and authorizing an invalid key during the Transport Layer Security (TLS) handshake.
Title curl: curl: wolfSSL public-key pinning bypass
Weaknesses CWE-295
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Low


cve-icon MITRE

Status: PUBLISHED

Assigner: curl

Published:

Updated: 2026-10-29T18:59:00.981Z

Reserved: 2026-09-09T13:17:42.764Z

Link: CVE-2026-87866

cve-icon Vulnrichment

Updated: 2026-10-29T18:58:12.743Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-20T21:17:20.833

Modified: 2026-10-29T19:17:27.917

Link: CVE-2026-87866

cve-icon Redhat

Severity : Low

Publid Date: 2026-10-14T12:00:00Z

Links: CVE-2026-87866 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T21:15:15Z

Weaknesses
  • CWE-295

    Improper Certificate Validation