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: 3.7 Low
EPSS: n/a
KEV: No
Impact: Public Key Pinning Bypass
Action: Apply Patch
AI Analysis

Impact

This vulnerability arises when curl is built with the wolfSSL backend and allows a remote attacker to bypass public key pinning during the TLS handshake. A specially crafted certificate that contains a manipulated validity length field forces curl to incorrectly re‑parse the certificate, causing the client to accept an invalid key as valid. The consequence is that an attacker can impersonate a legitimate server, enabling man‑in‑the‑middle attacks, credential theft, or data injection. The weakness is classified as CWE‑295, an 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 3.7 indicates a low overall severity, and the EPSS score is not available. 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 17, 2026 at 01:47 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 17, 2026 at 01:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

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-20T20:16:30.866Z

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

Link: CVE-2026-87866

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

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-18T14:45:06Z

Weaknesses
  • CWE-295

    Improper Certificate Validation