REDHAT-BUG-2550645: Low severity curl curl vulnerability
HSTS response erases persisted entries ======================================
Project curl Security Advisory, October 14 2026 Permalink
VULNERABILITY -------------
An authenticated HTTPS origin can supply an HSTS max-age value that the parser accepts, but time serialization later fails to process. On 64-bit systems, extreme max-age values compute an absolute expiry within standard time integer limits that exceeds calendar time structure bounds. During cache saves, the original HSTS file is truncated before writing a temporary replacement; when serialization fails, the temporary file is deleted, leaving an empty or partial cache. Because the save error is silently ignored during cleanup, curl exits successfully despite the data loss.
INFO ----
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-87863 to this issue.
CWE-201: Information Exposure Through Sent Data
Severity: Low
AFFECTED VERSIONS -----------------
- Affected versions: curl 8.2.0 to and including 8.22.0 - Not affected versions: curl < 8.2.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0c667188e0c6cda615a036b8a
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/08d50a791b3197a3d0a4fc2f778e24
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 curl deployments are affected?
curl versions 8.2.0 through 8.22.0, inclusive, are affected. Versions earlier than 8.2.0 and 8.23.0 or later are not affected.
What does an attacker need to exploit this issue?
An attacker needs to control an authenticated HTTPS origin and provide an HSTS max-age value accepted by curl's parser. The described time-serialization failure occurs on 64-bit systems when an extreme value produces an expiry beyond calendar time structure bounds.
What is the practical impact?
A failed HSTS cache save can truncate the existing HSTS file and leave it empty or partially written. Curl can still exit successfully because the cleanup path silently ignores the save error.
What should be done if upgrading cannot happen immediately?
The provided data identifies curl 8.23.0 or later as not affected. It does not provide an alternative configuration workaround.
How can an administrator identify possible prior impact?
Inspect the persisted HSTS cache for an empty or partial file after curl accesses an authenticated HTTPS origin. A successful curl exit status does not rule out the data loss.