HSTS cache import drops longer-lived child
Affects curl 8.11.0 through 8.22.0 when an HSTS cache import places an includeSubDomains parent before a longer-lived child. curl rates it Low; CVSS scores it 8.1. Fixed in 8.23.0.
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- How many real-world setups can hit the bug, from the vendor's advisory and CISA data. It does not know your setup.What do these mean? →
- Unclear
- The rating the maker of the software gives it. Shown when it differs from the CVSS level.What do these mean? →
- Low (curl)
- Fix
- Fixed in 8.14.3, 8.16.2, 8.20.2, 8.23.0
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: total
- 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
References 3
hackerone.com
Questions about CVE-2026-87862
What does this mean?
When an HSTS cache import places an includeSubDomains parent entry before a longer-lived child entry, curl silently drops the child. When the parent expires, the child's HSTS policy is lost, so curl sends unencrypted HTTP requests instead of upgrading to HTTPS.Source: curl.se, curl.se
Am I affected, and how do I check?
curl 8.11.0 through 8.22.0 are affected, including the point releases 8.11.1, 8.12.1, and 8.14.1. Check the installed version with curl --version; the bug also requires an HSTS cache import with the entry ordering described above.Source: curl.se, curl.se
What should I do about it?
Upgrade to curl 8.23.0. The advisory also lists fixed backport releases 8.14.3, 8.16.2, and 8.20.2 for those release lines.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