CVE-2024-9681 HSTS subdomain overwrites parent cache entry
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner rust(CBL-Mariner:2.0) | < 1.72.0-10 | 1.72.0-10 |
| oracle MySQL(CBL-Mariner:2.0) | < 8.0.40-3 | 8.0.40-3 |
| cbl-mariner cmake(CBL-Mariner:2.0) | < 3.21.4-16 | 3.21.4-16 |
| cbl-mariner curl(CBL-Mariner:2.0) | < 8.8.0-5 | 8.8.0-5 |
| azure linux tensorflow(Azure Linux:3.0) | < 2.16.1-7 | 2.16.1-7 |
| oracle MySQL(Azure Linux:3.0) | < 8.0.40-5 | 8.0.40-5 |
| azure linux cmake(Azure Linux:3.0) | < 3.30.3-4 | 3.30.3-4 |
| azure linux curl(Azure Linux:3.0) | < 8.8.0-4 | 8.8.0-4 |
| debian/curl(Debian:12) | < 7.88.1-10+deb12u9 | 7.88.1-10+deb12u9 |
| debian/curl(Debian:12) | = 7.88.1-10 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u1~bpo11+1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u2 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u3 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u3~bpo11+1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u4 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u5 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u5~bpo11+1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u6 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u6~bpo11+1 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u7 | No fix listed |
| debian/curl(Debian:12) | = 7.88.1-10+deb12u8 | No fix listed |
| debian/curl(Debian:13) | < 8.11.0-1 | 8.11.0-1 |
| debian/curl(Debian:14) | < 8.11.0-1 | 8.11.0-1 |
| ubuntu/curl(Ubuntu:22.04) | < 7.81.0-1ubuntu1.19 | 7.81.0-1ubuntu1.19 |
Show 47 more
| Product | Affected versions | Fixed in |
|---|---|---|
| curl | >= 8.10.1, <= 8.10.1 | No fix listed |
| curl | >= 8.10.0, <= 8.10.0 | No fix listed |
| curl | >= 8.9.1, <= 8.9.1 | No fix listed |
| curl | >= 8.9.0, <= 8.9.0 | No fix listed |
| curl | >= 8.8.0, <= 8.8.0 | No fix listed |
| curl | >= 8.7.1, <= 8.7.1 | No fix listed |
| curl | >= 8.7.0, <= 8.7.0 | No fix listed |
| curl | >= 8.6.0, <= 8.6.0 | No fix listed |
| curl | >= 8.5.0, <= 8.5.0 | No fix listed |
| curl | >= 8.4.0, <= 8.4.0 | No fix listed |
| curl | >= 8.3.0, <= 8.3.0 | No fix listed |
| curl | >= 8.2.1, <= 8.2.1 | No fix listed |
| curl | >= 8.2.0, <= 8.2.0 | No fix listed |
| curl | >= 8.1.2, <= 8.1.2 | No fix listed |
| curl | >= 8.1.1, <= 8.1.1 | No fix listed |
| curl | >= 8.1.0, <= 8.1.0 | No fix listed |
| curl | >= 8.0.1, <= 8.0.1 | No fix listed |
| curl | >= 8.0.0, <= 8.0.0 | No fix listed |
| curl | >= 7.88.1, <= 7.88.1 | No fix listed |
| curl | >= 7.88.0, <= 7.88.0 | No fix listed |
| curl | >= 7.87.0, <= 7.87.0 | No fix listed |
| curl | >= 7.86.0, <= 7.86.0 | No fix listed |
| curl | >= 7.85.0, <= 7.85.0 | No fix listed |
| curl | >= 7.84.0, <= 7.84.0 | No fix listed |
| curl | >= 7.83.1, <= 7.83.1 | No fix listed |
| curl | >= 7.83.0, <= 7.83.0 | No fix listed |
| curl | >= 7.82.0, <= 7.82.0 | No fix listed |
| curl | >= 7.81.0, <= 7.81.0 | No fix listed |
| curl | >= 7.80.0, <= 7.80.0 | No fix listed |
| curl | >= 7.79.1, <= 7.79.1 | No fix listed |
| curl | >= 7.79.0, <= 7.79.0 | No fix listed |
| curl | >= 7.78.0, <= 7.78.0 | No fix listed |
| curl | >= 7.77.0, <= 7.77.0 | No fix listed |
| curl | >= 7.76.1, <= 7.76.1 | No fix listed |
| curl | >= 7.76.0, <= 7.76.0 | No fix listed |
| curl | >= 7.75.0, <= 7.75.0 | No fix listed |
| curl | >= 7.74.0, <= 7.74.0 | No fix listed |
| curl | >= 7.74.0, <= 8.10.1 | No fix listed |
| alpine/curl(Alpine:v3.18) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.19) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.20) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.21) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.22) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.23) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| alpine/curl(Alpine:v3.24) | >= 7.74.0, < 8.11.0-r0 | 8.11.0-r0 |
| ubuntu/curl(Ubuntu:24.04) | < 8.5.0-2ubuntu10.5 | 8.5.0-2ubuntu10.5 |
| haxx curl | >= 7.74.0, < 8.11.0 | 8.11.0 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2024-9681 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7104-1 vendor-advisory
- www.cve.org
- json vendor-advisory
- www patch vendor-advisory
- issue exploit issue-tracking patch third-party-advisory
- www.openwall.com mailing-list patch third-party-advisory
- security.netapp.com
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- seclists.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking