Skip to main content
No exploitation reportedFix available

CVE-2024-6197

No exploitation reported by the sources we read.

  • Published2024-07-24

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-07-2408:15CVE publishedNVD

Versions per branch

CISA-ADP · NVD
Curl
BranchAffectedFixed in
8.x≥ 8.6.0, ≤ 8.8.0no fix published
Haxx libcurl
BranchAffectedFixed in
8.x≥ 8.6.0, < 8.9.08.9.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As curl, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • curlother versions: not affected
    Affected
    • ≥ 8.8.0, ≤ 8.8.0no fix statedsemver
    • ≥ 8.7.1, ≤ 8.7.1no fix statedsemver
    • ≥ 8.7.0, ≤ 8.7.0no fix statedsemver
    • ≥ 8.6.0, ≤ 8.6.0no fix statedsemver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-07-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cmakeAzure Linux:3all versions · fixed in 3.30.3-2
  • curlSUSE:Linux Micro 6.0all versions · fixed in 8.6.0-3.1
  • curlSUSE:Linux Enterprise Module for Basesystem 15 SP6all versions · fixed in 8.6.0-150600.4.3.1
  • curlopenSUSE:Tumbleweedall versions · fixed in 8.9.0-1.1
  • curlopenSUSE:Leap 15.6all versions · fixed in 8.6.0-150600.4.3.1
  • curlDebian:14all versions · fixed in 8.9.0-1
  • curlDebian:13all versions · fixed in 8.9.0-1
  • curlCleanStartall versions · fixed in 8.9.0-r0

14 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-6197 Red Hat Product Security1 product fixed

    curl: freeing stack buffer in utf8asn1str

  • ICSA-26-043-06 CISA16 known affected

    Siemens SINEC OS

    RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCH328 (6GK5328-4TS01-2EC2) · +13 more

  • SSA-089022 Siemens ProductCERT16 known affected

    SSA-089022: Multiple Vulnerabilities in Third-Party Components in SINEC OS before V3.3

    RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCH328 (6GK5328-4TS01-2EC2) · +13 more

  • ICSA-25-226-07 CISA3 known affected

    Siemens Third-Party Components in SINEC OS

    RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCM-/XRM-/XCH-/XRH-300 family

  • SSA-355557 Siemens ProductCERT3 known affected

    SSA-355557: Multiple Vulnerabilities in Third-Party Components in SINEC OS before V3.2

    RUGGEDCOM RST2428P (6GK6242-6PA00) · SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family · SCALANCE XCM-/XRM-/XCH-/XRH-300 family

  • RHSA-2025:3453 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.62 security update

Full record on NVD

Fix

  1. Vendor fix Siemens ProductCERT SSA-089022 · 14 productsUpdate to V3.3 or later version
  2. Vendor fix Siemens ProductCERT SSA-089022 · 1 productSee Section Additional Information.
  3. Vendor fix CISA ICSA-26-043-06 · 14 productsUpdate to V3.3 or later version
  4. Vendor fix CISA ICSA-26-043-06 · 1 productSee Section Additional Information.
  5. Vendor fix Siemens ProductCERT SSA-355557 · 2 productsUpdate to V3.2 or later version
  6. Vendor fix CISA ICSA-25-226-07 · 2 productsUpdate to V3.2 or later version

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2024-07-24
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-x3h8-3mf2-v794

Frequently asked questions

What is CVE-2024-6197?

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.

Is CVE-2024-6197 actively exploited?

Active exploitation of CVE-2024-6197 has not been confirmed. Its EPSS score was 4.3% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-6197?

CVE-2024-6197 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running curl? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record