7.5

CVE-2024-6197: freeing stack buffer in utf8asn1str

Modified
AliasesALPINE-CVE-2024-6197UBUNTU-CVE-2024-6197DEBIAN-CVE-2024-6197
Published 24-07-2024Last modified 13-02-2025

Vulnerability summary

CVE-2024-6197 is a high (CVSS 7.5) vulnerability in curl. EPSS estimates a 4.30% chance of exploitation in the next 30 days, higher than 91.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
4.30%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 24-07-2024
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last modifiedVulnerability information updated.

Description

libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes `free()` on a 4 byte localstack buffer. Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the `free()` implementation; likely to be memory pointers and a set of flags. The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

4.30%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.30% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (hackerone.com)

    Maturity: unknown

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • curl< 8.9.0-r0
Curl1 product
  • curl8.8.0 | 8.7.1 | 8.7.0 | 8.6.0
Debian1 product
  • curl< 8.9.0-1
Haxx1 product
Ubuntu1 product
  • curl< 7.68.0-1ubuntu2.22 | < 7.81.0-1ubuntu1.16 | < 8.5.0-2ubuntu10.1

5 vendors · 5 products

References

11 links
Show all 11 references