wolfSSL public-key pinning bypass (curl curl)

CVE-2026-87866
CRITICAL 9.1

At a glance

Source
NVD
EPSS
EPSS 0.51 % · percentile 43 ()
State
PUBLISHED
Published
Updated
Assigner
curl
NVD status
Awaiting Analysis

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.

Weaknesses (CWE)

  • CWE-295 — Improper Certificate Validation

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NCISA-ADP
CVSS 3.1CRITICAL 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
curl · curlaffected 8.22.0 ≤ 8.22.0 ; affected 8.21.0 ≤ 8.21.0 ; affected 8.20.0 ≤ 8.20.0 ; affected 8.19.0 ≤ 8.19.0 ; affected 8.18.0 ≤ 8.18.0 ; affected 8.17.0 ≤ 8.17.0

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD