CVE-2024-9681
curl HSTS Cache Interference Vulnerability
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.
INFO
Published Date :
Nov. 6, 2024, 8:15 a.m.
Last Modified :
Dec. 13, 2024, 2:15 p.m.
Source :
2499f714-1537-4658-8207-48ae4bb9eae9
Remotely Exploitable :
Yes !
Impact Score :
4.2
Exploitability Score :
2.2
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-9681
.
URL | Resource |
---|---|
https://curl.se/docs/CVE-2024-9681.html | Patch Vendor Advisory |
https://curl.se/docs/CVE-2024-9681.json | Vendor Advisory |
https://hackerone.com/reports/2764830 | Exploit Issue Tracking Patch Third Party 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/ |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-9681
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-9681
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Dec. 13, 2024
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20241213-0006/ -
Initial Analysis by [email protected]
Nov. 25, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L Added CWE NIST CWE-697 Added CPE Configuration OR *cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* versions from (including) 7.74.0 up to (excluding) 8.11.0 Changed Reference Type http://www.openwall.com/lists/oss-security/2024/11/06/2 No Types Assigned http://www.openwall.com/lists/oss-security/2024/11/06/2 Mailing List, Patch, Third Party Advisory Changed Reference Type https://curl.se/docs/CVE-2024-9681.html No Types Assigned https://curl.se/docs/CVE-2024-9681.html Patch, Vendor Advisory Changed Reference Type https://curl.se/docs/CVE-2024-9681.json No Types Assigned https://curl.se/docs/CVE-2024-9681.json Vendor Advisory Changed Reference Type https://hackerone.com/reports/2764830 No Types Assigned https://hackerone.com/reports/2764830 Exploit, Issue Tracking, Patch, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2024/11/06/2 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 06, 2024
Action Type Old Value New Value Added CVSS V3.1 CISA-ADP AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N -
CVE Received by 2499f714-1537-4658-8207-48ae4bb9eae9
Nov. 06, 2024
Action Type Old Value New Value Added 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. Added Reference curl https://curl.se/docs/CVE-2024-9681.json [No types assigned] Added Reference curl https://curl.se/docs/CVE-2024-9681.html [No types assigned] Added Reference curl https://hackerone.com/reports/2764830 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-9681
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-9681
weaknesses.