cbcvebase.
CVE-2024-6197
published 2024-07-24

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…

PriorityP342high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
4.30%
90.7th percentile
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.

Affected

20 ranges
VendorProductVersion rangeFixed in
curlcurl8.6.0 – 8.6.0—
curlcurl8.7.0 – 8.7.0—
curlcurl8.7.1 – 8.7.1—
curlcurl8.8.0 – 8.8.0—
debiancurl< curl 8.9.0-1 (forky)curl 8.9.0-1 (forky)
haxxcurl>= 0 < 8.9.0-18.9.0-1
haxxcurl>= 0 < 8.9.0-18.9.0-1
haxxlibcurl>= 8.6.0 < 8.9.08.9.0
msrccbl_mariner_2.0_arm——
msrccbl_mariner_2.0_x64——
msrcwindows_10_version_1809——
msrcwindows_10_version_21h2——
msrcwindows_10_version_22h2——
msrcwindows_11_version_21h2——
msrcwindows_11_version_22h2——
msrcwindows_11_version_23h2——
msrcwindows_11_version_24h2——
msrcwindows_server_2019——
msrcwindows_server_2022——
msrcwindows_server_2022_23h2_edition——

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv7.5HIGH
vendor_msrc8.8HIGH
vendor_debian7.5LOW
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.