---
schema_version: '1.0'
id: security-20260705-3ced32
url: https://osv.dev/vulnerability/CURL-CVE-2024-9681
url_hash: 3ced3210c960943dfbe99b30835c6fb865acc16e84b52451a61398ec215368b7
canonical_url: https://osv.dev/vulnerability/CURL-CVE-2024-9681
source: osv:osv
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2024-9681
- CURL-CVE-2024-9681
- severity:Low
- https://github.com/curl/curl
- GIT
lang: en
published_at: '2024-11-06T08:00:00Z'
fetched_at: '2026-07-05T15:34:34Z'
updated_at: '2026-07-05T15:37:03Z'
status: published
content_hash: 28e3659dc374eccb6877fc5040305c0d23604e5cafc90b6cfb2b9f2696d483d5
license_note: full
summary: HSTS subdomain overwrites parent cache entry
summary_source: rss
summary_en: HSTS subdomain overwrites parent cache entry
entities:
- name: GitHub
  type: organization
key_facts: []
related: []
related_auto:
- name: Anonymous
  type: organization
  weight: 1.0
- name: AirPods
  type: artifact
  weight: 1.0
- name: Claude Code
  type: artifact
  weight: 1.0
- name: セッション漏洩
  type: event
  weight: 1.0
- name: local-llm
  type: content
  weight: 1.0
title: 'CVE-2024-9681: HSTS subdomain overwrites parent cache entry'
---

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

## TL;DR
HSTS subdomain overwrites parent cache entry

## Key Points
- cve / CVE-2024-9681 / CURL-CVE-2024-9681 / severity:Low / https://github.com/curl/curl / GIT

## Details
**Severity:** Low
**Advisory:** CURL-CVE-2024-9681 (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.

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

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