---
title: "CVE-2026-87866"
canonical_url: "https://pkgseek.com/security/CVE-2026-87866"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2026-87866

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.

CVE-2026-87866 is rated CRITICAL (9.1), with 6 indexed affected package builds across 1 distributions.

- **Severity / Score**: CRITICAL (9.1)
- **Affected builds**: 6
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | curl | 8.14.1-2+deb13u7 | — |
| Debian | trixie | libcurl3t64-gnutls | 8.14.1-2+deb13u7 | — |
| Debian | trixie | libcurl4-doc | 8.14.1-2+deb13u7 | — |
| Debian | trixie | libcurl4-gnutls-dev | 8.14.1-2+deb13u7 | — |
| Debian | trixie | libcurl4-openssl-dev | 8.14.1-2+deb13u7 | — |
| Debian | trixie | libcurl4t64 | 8.14.1-2+deb13u7 | — |
