# CVE-2024-9681: HSTS subdomain overwrites parent cache entry

- Severity: Medium 5.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.99%, higher than 81% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-06T07:47:20.162Z
- Modified: 2026-10-25T01:04:38.513Z
- Also known as: CURL-CVE-2024-9681
- Weaknesses: CWE-697, CWE-1025
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: curl

## Description

When curl is asked to use HSTS, the expiry time for a subdomain might
overwrite a parent domain's cache entry, making it end sooner or later than
otherwise intended.

This affects curl using applications that enable HSTS and use URLs with the
insecure `HTTP://` scheme and perform transfers with hosts like
`x.example.com` as well as `example.com` where the first host is a subdomain
of the second host.

(The HSTS cache either needs to have been populated manually or there needs to
have been previous HTTPS accesses done as the cache needs to have entries for
the domains involved to trigger this problem.)

When `x.example.com` responds with `Strict-Transport-Security:` headers, this
bug can make the subdomain's expiry timeout *bleed over* and get set for the
parent domain `example.com` in curl's HSTS cache.

The result of a triggered bug is that HTTP accesses to `example.com` get
converted to HTTPS for a different period of time than what was asked for by
the origin server. If `example.com` for example stops supporting HTTPS at its
expiry time, curl might then fail to access `http://example.com` until the
(wrongly set) timeout expires. This bug can also expire the parent's entry
*earlier*, thus making curl inadvertently switch back to insecure HTTP earlier
than otherwise intended.

(As written by CVE List.)

## Affected

- curl curl: from 8.10.1 up to 8.10.1; from 8.10.0 up to 8.10.0; from 8.9.1 up to 8.9.1; from 8.9.0 up to 8.9.0; from 8.8.0 up to 8.8.0; from 8.7.1 up to 8.7.1; from 8.7.0 up to 8.7.0; from 8.6.0 up to 8.6.0; from 8.5.0 up to 8.5.0; from 8.4.0 up to 8.4.0; from 8.3.0 up to 8.3.0; from 8.2.1 up to 8.2.1; and 26 more (not affected: before 7.74.0; from 8.11.0 before *)
- https://github.com/curl/curl.git: from 7.74.0 before 8.11.0; from 7385610d0c74c6a254fea5e4cd6e1d559d848c8c before a94973805df96269bf3f3bf0a20ccb9887313316
- haxx curl: from 7.74.0 before 8.11.0

## Every score

- CISA-ADP: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- curl: rating Low
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L`

## References

- <https://hackerone.com/reports/2764830> (exploit, issue-tracking, patch, third-party-advisory)
- <https://curl.se/docs/CVE-2024-9681.json> (vendor-advisory)
- <https://curl.se/docs/CVE-2024-9681.html> (patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/11/06/2> (mailing-list, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20241213-0006/>
- <http://seclists.org/fulldisclosure/2025/Apr/13>
- <http://seclists.org/fulldisclosure/2025/Apr/10>
- <http://seclists.org/fulldisclosure/2025/Apr/9>
- <http://seclists.org/fulldisclosure/2025/Apr/8>
- <http://seclists.org/fulldisclosure/2025/Apr/5>
- <http://seclists.org/fulldisclosure/2025/Apr/4>
- <http://seclists.org/fulldisclosure/2025/Apr/12>
- <http://seclists.org/fulldisclosure/2025/Apr/11>

## Sources

- CVE List: [CVE-2024-9681](https://www.cve.org/CVERecord?id=CVE-2024-9681), CVE Terms of Use, modified 2025-11-03
- curl: [CURL-CVE-2024-9681](https://osv.dev/vulnerability/CURL-CVE-2024-9681), MIT, modified 2026-10-25
- NVD: [CVE-2024-9681](https://nvd.nist.gov/vuln/detail/CVE-2024-9681), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-9681 · Whole record: https://cve.day/CVE-2024-9681.json · Rebuilt by cve.day 2026-11-25T22:58:47.819Z
