Security Resilience

CVE-2024-9681

Haxx Curl 7.74.0 – 8.11.0

Public PoC
Published
06 November 2024
Modified
03 November 2025
Patch / advisory
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
EPSS Score 0.020 81th percentile
Risk Priority 54 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-9681 is a medium-severity Incorrect Comparison (CWE-697) vulnerability in Haxx Curl. Its CVSS base score is 6.5 (Medium).

Operationally, ranked in the top 19% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and AC-25 (Reference Monitor) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-3784Same product: Haxx Curl
CVE-2026-8927Same product: Haxx Curl
CVE-2025-10148Same product: Haxx Curl
CVE-2026-18924Same product: Haxx Curl
CVE-2025-10966Same product: Haxx Curl
CVE-2026-9080Same product: Haxx Curl
CVE-2026-6276Same product: Haxx Curl
CVE-2026-8926Same product: Haxx Curl
CVE-2026-19931Same product: Haxx Curl
CVE-2026-11352Same product: Haxx Curl

Affected Assets

haxx
curl
7.74.0 — 8.11.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation directly exercises security-relevant comparisons to discover incorrect logic.

A reference monitor must be small and correct, structurally limiting the chance of flawed comparison logic in authorization decisions.

Security engineering principles require correct implementation of comparison logic used for access and authentication decisions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect incorrect comparison flaws before deployment.

prevents

Training raises developer awareness of common comparison pitfalls (wrong boolean operators, missing factors, non-constant-time checks, using attacker-controlled lengths), reducing a minority of instances, but the defect lives in the code itself and fallible human practice cannot prevent most of it.

prevents

Secure coding standards directly address avoiding incorrect comparison operators and logic.

prevents

A.8.30 carries secure coding practice (8.28) into the supplier relationship via contractual requirements, which reduces the incidence of implementation-phase code defects like incorrect comparisons, but the effect is mediated through a fallible human practice and the clause's own ceiling on this verb is partial.

finds

A.8.8's reach is disclosure-based (vendor advisories, CVE databases, vulnerability scanning of deployed components); CWE-697 is a code-level comparison defect in first-party code that A.8.8 does not read, and the class rarely surfaces as standalone published CVEs.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-697, a pillar-level weakness, and none of its children carries one either.

References