6.5

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

Modified
AliasesALPINE-CVE-2024-9681MGASA-2024-0360SUSE-SU-2024:3925-1
Published 06-11-2024Last modified 03-11-2025

Vulnerability summary

CVE-2024-9681 is a medium (CVSS 6.5) Incorrect Comparison vulnerability in curl. EPSS estimates a 1.99% chance of exploitation in the next 30 days, higher than 80.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
1.99%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 2

Timeline

  1. 06-11-2024
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

1.99%

Chance of exploitation in the next 30 days

Percentile

81%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.99% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (hackerone.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Suse16 products
  • curl&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 8.0.1-150400.5.56.1
  • curl&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 8.0.1-150400.5.56.1
  • curl&distro=SUSE Linux Enterprise Installer Updates 15 SP4< 8.0.1-150400.5.56.1
  • curl&distro=SUSE Linux Enterprise Installer Updates 15 SP5< 8.0.1-150400.5.56.1
  • curl&distro=SUSE Linux Enterprise Micro 5.3< 8.0.1-150400.5.56.1
Opensuse4 products
  • curl&distro=openSUSE Leap 15.5< 8.0.1-150400.5.56.1
  • curl&distro=openSUSE Leap 15.6< 8.6.0-150600.4.12.1
  • curl&distro=openSUSE Leap Micro 5.5< 8.0.1-150400.5.56.1
  • curl&distro=openSUSE Tumbleweed< 8.11.0-1.1
Chainguard2 products
  • curl< 8.11.0-r0
  • libcurl4All versions (No fix recorded)
Wolfi2 products
  • curl< 8.11.0-r0
  • libcurl4All versions (No fix recorded)
Alpine1 product
  • curl≥ 7.74.0, < 8.11.0-r0
Curl1 product
  • curl8.10.1 | 8.10.0 | 8.9.1 | 8.9.0 | 8.8.0 | 8.7.1 | 8.7.0 | 8.6.0 | 8.5.0 | 8.4.0 | 8.3.0 | 8.2.1 | 8.2.0 | 8.1.2 | 8.1.1 | 8.1.0 | 8.0.1 | 8.0.0 | 7.88.1 | 7.88.0 | 7.87.0 | 7.86.0 | 7.85.0 | 7.84.0 | 7.83.1 | 7.83.0 | 7.82.0 | 7.81.0 | 7.80.0 | 7.79.1 | 7.79.0 | 7.78.0 | 7.77.0 | 7.76.1 | 7.76.0 | 7.75.0 | 7.74.0
Debian1 product
  • curl< 7.88.1-10+deb12u9 | < 8.11.0-1
Haxx1 product
  • curl≥ 7.74.0, < 8.11.0
Mageia1 product
  • curl< 7.88.1-4.4.mga9
Ubuntu1 product
  • curl< 7.81.0-1ubuntu1.19 | < 8.5.0-2ubuntu10.5

10 vendors · 30 products

References

29 links
Show all 29 references