CVE-2026-87866: wolfSSL public-key pinning bypass

Published Oct 20, 2026
·
Updated

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 Software

8 affected componentsFixes available
curl curl
wolfSSL wolfssl
alpine/curl<8.23.0-r0
8.23.0-r0
alpine/curl<8.23.0-r0
8.23.0-r0
debian/curl*
debian/curl*
debian/curl*
debian/curl<=7.88.1-10+deb12u15, <=7.88.1-10+deb12u5, <=8.14.1-2+deb13u5, <=8.14.1-2+deb13u7, <=8.22.0-1
8.23.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/curl to a version that resolves this vulnerability.

    Fixed in 8.23.0-r0
  2. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.23.0-1

Event History

Oct 20, 2026
CVE Published
via MITRE·08:16 PM
Data Sourced
via MITRE·08:16 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·09:17 PM
DescriptionSeverityAffected Software
Oct 23, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using curl built with wolfSSL are affected when they rely on pinned public-key hashes for TLS peer authorization. The issue concerns curl's pinning check after wolfSSL has validated the TLS connection.

2

What must an attacker control to exploit the issue?

The attacker must be able to present a TLS certificate with a manipulated validity length field. This can cause curl's certificate re-parsing to extract a different embedded key that matches the configured pin, even though the TLS peer does not possess that key.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203