CVE-2026-87866curl
Incorrect pinned certificate validation in curl with wolfSSL
Critical 9.1 No auth needed
Follow: this CVE · curl · curl We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 20, 2026
- Updated
- Oct 29, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
curl built with wolfSSL can incorrectly validate a pinned public key hash against a key the TLS peer does not possess. An attacker can manipulate the certificate validity field to trick curl into extracting and validating a different key, bypassing public key pinning protection.
Show the original NVD text
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.
What to do
No patch data
Update curl to a patched version when available. If you use wolfSSL, verify that your curl version is after the one that fixes this issue.
- Apply the vendor's security update for curl.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- curl · curl
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- curl-8.23.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12150-1 · Oct 16, 2026 Critical
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:82895 · Oct 15, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.