CVE & CISA-KEV Catalog

CVE-2024-9681

MEDIUMEPSS 78th pctl
6.5
CVSS v3
NVD

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.

How to fix

Remediation Available
curlDebian
Fixed in:7.88.1-10+deb12u9CVE-2024-9681
Fixed in:8.11.0-1CVE-2024-9681
Fixed in:8.11.0-1CVE-2024-9681
curlUbuntu
Fixed in:7.81.0-1ubuntu1.19USN-7104-1
Fixed in:8.5.0-2ubuntu10.5USN-7104-1
libcurl3-gnutlsUbuntu
Fixed in:7.81.0-1ubuntu1.19USN-7104-1
libcurl3-nssUbuntu
Fixed in:7.81.0-1ubuntu1.19USN-7104-1
libcurl3t64-gnutlsUbuntu
Fixed in:8.5.0-2ubuntu10.5USN-7104-1
libcurl4Ubuntu
Fixed in:7.81.0-1ubuntu1.19USN-7104-1
libcurl4t64Ubuntu
Fixed in:8.5.0-2ubuntu10.5USN-7104-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityHigh
AvailabilityLow

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L

Exploit Intelligence

1.97%probability of exploitation in 30 days
78thpercentile

Elevated risk: more likely to be exploited than 78% of all known CVEs.

References

Embed a live status badge for CVE-2024-9681
CVE-2024-9681 severity badge

Markdown

[![CVE-2024-9681](https://tridentstack.com/cve/badge/CVE-2024-9681.svg)](https://tridentstack.com/cve/CVE-2024-9681)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-9681"><img src="https://tridentstack.com/cve/badge/CVE-2024-9681.svg" alt="CVE-2024-9681"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.