CVE-2026-87866
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 package | Versions | Reported by |
|---|---|---|
| curl curl | from 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 more | CVE List |
| https://github.com/curl/curl.git | from 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 ed131747c1a3dc7f816d26724c44537ac8acba44 | curl |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| curl | low rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-87866 changed 2026-10-29 | CVE Terms of Use |
| curl | CURL-CVE-2026-87866 changed 2026-10-27 | MIT |
| NVD | CVE-2026-87866 changed 2026-10-29 | Public domain |