Vulnerability · Published Oct 20, 2026 · Assigned by curl

CVE-2026-87866wolfSSL public-key pinning bypass

Critical 9.1

In plain English

A critical-severity improper certificate validation in curl from curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.5%top 56.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23curl8.23.0-r0ALPINE-CVE-2026-87866
Alpine:v3.24curl8.23.0-r0ALPINE-CVE-2026-87866
Debian:12curlno fix listedDEBIAN-CVE-2026-87866
Debian:13curlno fix listedDEBIAN-CVE-2026-87866
Debian:14curlno fix listedDEBIAN-CVE-2026-87866

Affected products (as reported)

VendorProductVersions
curl curl 8.22.0 – through 8.22.08.21.0 – through 8.21.08.20.0 – through 8.20.08.19.0 – through 8.19.08.18.0 – through 8.18.08.17.0 – through 8.17.08.16.0 – through 8.16.08.15.0 – through 8.15.0

Weakness: CWE-295 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References