Live threats

All CVEs / curl

CVE-2026-87866curl

Incorrect pinned certificate validation in curl with wolfSSL

Critical 9.1 No auth needed

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.

Source text, unmodified. NVD.

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.

Vendor advisory · curl.se ↗

  1. Apply the vendor's security update for curl.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.