Skip to main content
← All vulnerabilities
CVE-2026-87863

HSTS response erases persisted entries

Affects curl 8.2.0 through 8.22.0 on 64-bit systems, where extreme max-age values erase saved HSTS entries. curl rates it Low. Fixed in 8.23.0.

Published
Last modified
published
Not listed in CISA KEV
Unclear
Low (curl)
Fix
Fixed in 8.14.3, 8.16.2, 8.20.2, 8.23.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • curl curl

    From 8.22.0 · through 8.22.0; From 8.21.0 · through 8.21.0; From 8.20.0 · through 8.20.0; From 8.19.0 · through 8.19.0; From 8.18.0 · through 8.18.0; From 8.17.0 · through 8.17.0; From 8.16.0 · through 8.16.0; From 8.15.0 · through 8.15.0; From 8.14.1 · through 8.14.1; From 8.14.0 · through 8.14.0; From 8.13.0 · through 8.13.0; From 8.12.1 · through 8.12.1; From 8.12.0 · through 8.12.0; From 8.11.1 · through 8.11.1; From 8.11.0 · through 8.11.0; From 8.10.1 · through 8.10.1; From 8.10.0 · through 8.10.0; From 8.9.1 · through 8.9.1; From 8.9.0 · through 8.9.0; From 8.8.0 · through 8.8.0; From 8.7.1 · through 8.7.1; From 8.7.0 · through 8.7.0; From 8.6.0 · through 8.6.0; From 8.5.0 · through 8.5.0; From 8.4.0 · through 8.4.0; From 8.3.0 · through 8.3.0; From 8.2.1 · through 8.2.1; From 8.2.0 · through 8.2.0

References 3

curl.se

hackerone.com

FAQ

Questions about CVE-2026-87863

What does this mean?

An HSTS response with an extreme max-age value makes curl compute an absolute expiry that erases the HSTS entries already saved in its cache. The cache is left empty or partial, and curl still exits successfully.Source: curl.se, curl.se

Am I affected, and how do I check?

Affected versions are curl 8.2.0 through 8.22.0 on 64-bit systems. To check a version, run curl --version and compare the number against that range.Source: curl.se, curl.se

What should I do about it?

Upgrade to curl 8.23.0. Fixed releases also exist for the older branches: 8.14.3, 8.16.2 and 8.20.2.Source: curl.se, curl.se

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.Source: cve.now feed data

Why is it rated 8.1 High?

CVSS scores this 8.1 (high) for the worst case. curl rates it Low because the bug needs extreme max-age values on 64-bit systems, and curl knows how rare that setup is.Source: curl.se, curl.se