cve.bz

CVE-2024-9681 haxx curl: Incorrect Comparison

6.5 mediumExploit referenceEPSS 2.0%Fix available

Medium (6.5) in haxx curl. EPSS 2.0% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-11-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-697 Incorrect Comparison
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-9681 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-9681?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-9681?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-9681 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
curlfrom 8.10.1 through 8.10.1
curlfrom 8.10.0 through 8.10.0
curlfrom 8.9.1 through 8.9.1
curlfrom 8.9.0 through 8.9.0
curlfrom 8.8.0 through 8.8.0
curlfrom 8.7.1 through 8.7.1
curlfrom 8.7.0 through 8.7.0
curlfrom 8.6.0 through 8.6.0
curlfrom 8.5.0 through 8.5.0
curlfrom 8.4.0 through 8.4.0
curlfrom 8.3.0 through 8.3.0
curlfrom 8.2.1 through 8.2.1
curlfrom 8.2.0 through 8.2.0
curlfrom 8.1.2 through 8.1.2
curlfrom 8.1.1 through 8.1.1
curlfrom 8.1.0 through 8.1.0
curlfrom 8.0.1 through 8.0.1
curlfrom 8.0.0 through 8.0.0
curlfrom 7.88.1 through 7.88.1
curlfrom 7.88.0 through 7.88.0
curlfrom 7.87.0 through 7.87.0
curlfrom 7.86.0 through 7.86.0
curlfrom 7.85.0 through 7.85.0
curlfrom 7.84.0 through 7.84.0
curlfrom 7.83.1 through 7.83.1
curlfrom 7.83.0 through 7.83.0
curlfrom 7.82.0 through 7.82.0
curlfrom 7.81.0 through 7.81.0
curlfrom 7.80.0 through 7.80.0
curlfrom 7.79.1 through 7.79.1
curlfrom 7.79.0 through 7.79.0
curlfrom 7.78.0 through 7.78.0
curlfrom 7.77.0 through 7.77.0
curlfrom 7.76.1 through 7.76.1
curlfrom 7.76.0 through 7.76.0
curlfrom 7.75.0 through 7.75.0
curlfrom 7.74.0 through 7.74.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12curl7.88.1-10+deb12u9DEBIAN-CVE-2024-9681
Debian13, 14curl8.11.0-1DEBIAN-CVE-2024-9681
Ubuntu22.04:LTScurl7.81.0-1ubuntu1.19UBUNTU-CVE-2024-9681 USN-7104-1
Ubuntu24.04:LTScurl8.5.0-2ubuntu10.5UBUNTU-CVE-2024-9681 USN-7104-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Installer Updates 15 SP4 and 9 morecurl8.0.1-150400.5.56.1SUSE-SU-2024:3926-1
SUSELinux Enterprise Module for Basesystem 15 SP6curl8.6.0-150600.4.12.1SUSE-SU-2024:3925-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5curl8.0.1-11.98.1SUSE-SU-2024:3927-1 SUSE-SU-2024:3927-2
SUSELinux Micro 6.0curl8.6.0-4.1SUSE-SU-2025:20083-1
SUSELinux Micro 6.1curl8.12.1-slfo.1.1_1.1SUSE-SU-2025:20239-1
openSUSELeap 15.5, Leap Micro 5.5curl8.0.1-150400.5.56.1SUSE-SU-2024:3926-1
openSUSELeap 15.6curl8.6.0-150600.4.12.1SUSE-SU-2024:3925-1
openSUSETumbleweedcurl8.11.0-1.1openSUSE-SU-2024:14476-1
Alpinev3.18, v3.19, v3.20 and 4 morecurl8.11.0-r0ALPINE-CVE-2024-9681
Azure Linux2cmake3.21.4-16AZL-52402
Azure Linux2curl8.8.0-5AZL-52335
Azure Linux2mysql8.0.40-3AZL-52426
Azure Linux2rust1.72.0-10AZL-52444
Azure Linux3cmake3.30.3-4AZL-52405
Azure Linux3curl8.8.0-4AZL-52347
Azure Linux3mysql8.0.40-5AZL-52414
Azure Linux3tensorflow2.16.1-7AZL-52449
Alpaquita23curl8.9.1-r1BELL-CVE-2024-9681
Alpaquitastreamcurl8.11.0-r1BELL-CVE-2024-9681
BellSoft Hardened Containersstreamcurl8.11.0-r1BELL-CVE-2024-9681

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been classified with a low severity primarily because it requires user interaction and a connection to a malicious subdomain. Additionally, this issue is only triggered when an HSTS cache file is being used with specific configurations when connecting to a malicious subdomain. This feature is enabled via the '--hsts' command line option. Furthermore, this issue will only cause parent domains that support HSTS for a short period of time and want to revert to HTTP to become inaccessible.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7curlNot affected
Red Hat Enterprise Linux 8curlNot affected
Red Hat Enterprise Linux 9curlFix deferred
Red Hat JBoss Core Servicesjbcs-httpd24-curlFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-core-bff-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-llmisvc-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-module-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kuberay-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kube-rbac-proxy-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-maas-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mod-arch-agent-ops-rhel9Under investigation
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-9681.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-043-06Siemens SINEC OS2026-01-28Energy, Critical Manufacturing, Transportation Systems, Water and WastewaterRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCH328 (6GK5328-4TS01-2EC2) and 13 morenone listed
ICSA-25-226-07Siemens Third-Party Components in SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesRUGGEDCOM RST2428P (6GK6242-6PA00), SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family, SCALANCE XCM-/XRM-/XCH-/XRH-300 familynone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-697 (29).

References

Check your stackJSON