REDHAT-BUG-2550677: Low severity curl libcurl vulnerability

Published Oct 13, 2026
·
Updated

wolfSSL public-key pinning bypass =================================

Project curl Security Advisory, October 14 2026 Permalink

VULNERABILITY -------------

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.

INFO ----

This flaw only exists when curl was built to use wolfSSL. This flaw also relies on a wolfSSL bug accepting this malformed certificate.

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87866 to this issue.

CWE-295: Improper Certificate Validation

Severity: Low

AFFECTED VERSIONS -----------------

- Affected versions: curl 7.43.0 to and including 8.22.0 - Not affected versions: curl < 7.43.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0675abbc7572ff6d711a1f3

libcurl is used by many applications, but not always advertised as such!

This flaw does not affect the curl command line tool.

SOLUTION --------

- Fixed-in: https://github.com/curl/curl/commit/ed131747c1a3dc7f816d26724c44

RECOMMENDATIONS ---------------

A - Upgrade curl to version 8.23.0

B - Apply the patch to your local version

C - Avoid key pinning or use another TLS backend

TIMELINE --------

This issue was reported to the curl project on September 2, 2026.

curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.

CREDITS -------

- Reported-by: Muhamad Arga Reksapati - Patched-by: Stefan Eissing

Thanks a lot!

Affected Software

1 affected component
curl libcurl>=7.43.0<=8.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.23.0
  2. Compensating control

    For curl built with wolfSSL, avoid key pinning or use another TLS backend.

Event History

Oct 13, 2026
Data Sourced
via Red Hat·04:36 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Only curl or libcurl builds that use wolfSSL are affected, and the issue concerns connections using public-key pinning. Builds using other TLS backends are not affected by this flaw.

2

What does an attacker need to exploit this?

The TLS peer must present a malformed certificate with a manipulated validity-length field. Exploitation also depends on the wolfSSL bug that accepts the malformed certificate during the TLS handshake.

3

How can I determine whether my installation is affected?

Verify whether the deployed curl or libcurl was built with wolfSSL, whether public-key pinning is used, and whether the curl version is from 7.43.0 through 8.22.0 inclusive. Versions earlier than 7.43.0 and versions 8.23.0 or later are listed as not affected.

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