Menu

Star on GitHub · 3.2k

CVE-2024-9681

6.5 · MEDIUM

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.

Published Nov 6, 2024CWE-697EPSS 1.99%

Overview

CVE-2024-9681 is a medium-severity vulnerability. It was published on November 6, 2024 and has a CVSS 3.1 base score of 6.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 6.5, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-9681?

CVE-2024-9681 is a medium-severity vulnerability. It was published on November 6, 2024 and has a CVSS 3.1 base score of 6.5 (MEDIUM).

How severe is CVE-2024-9681?

This vulnerability has a CVSS 3.1 base score of 6.5, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2024-9681?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-9681?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-9681 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all