CVE-2026-87866
JSON

9.1critical

wolfSSL public-key pinning bypass

Severity
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.51% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
curl
Also known as
CURL-CVE-2026-87866

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

Product or packageVersionsReported by
curl curlfrom 8.22.0 up to 8.22.0, from 8.21.0 up to 8.21.0, from 8.20.0 up to 8.20.0, from 8.19.0 up to 8.19.0, from 8.18.0 up to 8.18.0, from 8.17.0 up to 8.17.0, from 8.16.0 up to 8.16.0, from 8.15.0 up to 8.15.0 and 92 moreCVE List
https://github.com/curl/curl.gitfrom 7.43.0 before 8.14.3, from 8.15.0 before 8.16.2, from 8.17.0 before 8.20.2, from 8.21.0 before 8.23.0, from 0675abbc7572ff6d711a1f325d9b812f98bce78f before ed131747c1a3dc7f816d26724c44537ac8acba44curl

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
curllow rating

Classification

CWE-295

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-87866 changed 2026-10-29CVE Terms of Use
curlCURL-CVE-2026-87866 changed 2026-10-27MIT
NVDCVE-2026-87866 changed 2026-10-29Public domain