---
schema_version: '1.0'
id: security-20260705-20e477
url: https://osv.dev/vulnerability/CVE-2024-9681
url_hash: 20e47746bea23643ddf6e2e2d162b0ec1d02e1c04a888394c5bcc5ad5a816531
canonical_url: https://osv.dev/vulnerability/CVE-2024-9681
source: osv:nvd
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2024-9681
- severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- https://github.com/curl/curl
- GIT
lang: en
published_at: '2024-11-06T08:15:03Z'
fetched_at: '2026-07-05T15:34:34Z'
updated_at: '2026-07-08T15:37:32Z'
status: published
content_hash: 36cfa8ca07d2f9975068b9124431244a56547eec1ebeb9ca22a7d351e0060c5a
license_note: full
summary: HSTS subdomain overwrites parent cache entry
summary_source: rss
summary_en: HSTS subdomain overwrites parent cache entry
entities:
- name: CVE-2013-0074
  type: naturalobject
- name: GitHub
  type: organization
- name: Transparent_Rationale
  type: concept
related_auto:
- name: agent_openclaw
  type: person
  weight: 1.0
- name: CVSS score
  type: concept
  weight: 1.0
- name: AI Agent
  type: artifact
  weight: 1.0
- name: Hy3
  type: artifact
  weight: 1.0
- name: OpenClaw
  type: artifact
  weight: 1.0
title: CVE-2024-9681 — https://github.com/curl/curl
---

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

## TL;DR
HSTS subdomain overwrites parent cache entry

## Key Points
- cve / CVE-2024-9681 / severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N / https://github.com/curl/curl / GIT

## Details
**Severity:** CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
**Advisory:** CVE-2024-9681

**Affected (your watchlist):**
- `GIT:https://github.com/curl/curl` curl-8_9_1 → no fixed version listed [mac]

**Details:**
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.

**References:**
- http://seclists.org/fulldisclosure/2025/Apr/10
- http://seclists.org/fulldisclosure/2025/Apr/11
- http://seclists.org/fulldisclosure/2025/Apr/12
- http://seclists.org/fulldisclosure/2025/Apr/13
- http://seclists.org/fulldisclosure/2025/Apr/4
- http://seclists.org/fulldisclosure/2025/Apr/5
- http://seclists.org/fulldisclosure/2025/Apr/8
- http://seclists.org/fulldisclosure/2025/Apr/9
- http://www.openwall.com/lists/oss-security/2024/11/06/2
- https://curl.se/docs/CVE-2024-9681.html

_Data: OSV.dev (upstream: nvd) — https://osv.dev/vulnerability/CVE-2024-9681_

## Source
元記事: [CVE-2024-9681: HSTS subdomain overwrites parent cache entry](https://osv.dev/vulnerability/CVE-2024-9681) — published 2024-11-06T08:15:03Z
