REDHAT-BUG-2550645: Low severity curl curl vulnerability

Published Oct 13, 2026
·
Updated

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

1 affected component
curl curl>=8.2.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

    Do not rely on HSTS.

Event History

Oct 13, 2026
Data Sourced
via Red Hat·03:49 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

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.

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