REDHAT-BUG-2550638: Low severity curl curl vulnerability
HSTS cache import drops longer-lived child ==========================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
Importing a includeSubDomains parent HSTS entry before a longer-lived child entry, silently drops the child. Consequently, when the parent expires, the child's valid HSTS policy is lost, causing curl to issue unencrypted HTTP requests rather than upgrading to HTTPS.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87862 to this issue.
CWE-201: Information Exposure Through Sent Data
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.11.0 to and including 8.22.0 - Not affected versions: curl < 8.11.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/a94973805df96269bf3f3bf0a2
libcurl is used by many applications, but not always advertised as such!
This flaw also affects the curl command line tool.
SOLUTION ------------
- Fixed-in: https://github.com/curl/curl/commit/a1614c3bcf1593eb524b37792124357
RECOMMENDATIONS --------------
A - Upgrade curl to version 8.23.0
B - Apply the patch to your local version
C - Do not rely on HSTS
TIMELINE --------
This issue was reported to the curl project on August 26, 2026.
curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.
CREDITS -------
- Reported-by: Stanislav Fort (Aisle Research) - Patched-by: Daniel Stenberg
Thanks a lot!
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.23.0 - Compensating control
Do not rely on HSTS.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using curl or libcurl versions 8.11.0 through 8.22.0 are affected. This includes the curl command-line tool and applications that use libcurl, including applications where libcurl use is not readily visible.
What conditions are needed for the HTTPS downgrade behavior to occur?
The HSTS cache must import an includeSubDomains parent entry before a child entry that has a longer lifetime. When the parent entry later expires, the valid child policy is lost and curl can make HTTP requests instead of upgrading them to HTTPS.
How can I determine whether a system is affected?
Check the version of curl or libcurl in use: versions 8.11.0 through 8.22.0 are affected, while versions earlier than 8.11.0 and version 8.23.0 or later are not. Also identify applications that bundle or depend on libcurl rather than relying only on the command-line curl version.
What should be done if the affected version is installed?
Upgrade curl to version 8.23.0. The advisory also identifies a fix commit that can be applied when upgrading is not immediately possible.