{"id":"CVE-2024-6197","published":"2024-07-24T07:29:50Z","modified":"2025-02-13T17:54:41Z","title":"freeing stack buffer in utf8asn1str","vendor":"curl","product":"curl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.04296,"percentile":0.91359,"provenance":"source"},"cwes":[],"references":[{"url":"https://curl.se/docs/CVE-2024-6197.json","tags":[]},{"url":"https://curl.se/docs/CVE-2024-6197.html","tags":[]},{"url":"https://hackerone.com/reports/2559516","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/24/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/24/5","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241129-0008/","tags":[]}],"priority":{"score":23.5,"factors":[{"name":"EPSS percentile","points":18.27},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"curl","affectedVersions":[{"vendor":"curl","product":"curl","versions":[">= 8.8.0, <= 8.8.0",">= 8.7.1, <= 8.7.1",">= 8.7.0, <= 8.7.0",">= 8.6.0, <= 8.6.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-24T18:42:30.556099Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The libcurl ASN.1 parser's utf8asn1str() function, used to parse UTF-8 strings in curl's ASN.1 handling, calls free() on a 4-byte stack buffer when it rejects an invalid field. Exploiting this from the network with no authentication or user interaction is possible per the attack vector, but the most likely result is a crash, since many malloc implementations abort on this error, while on others the free() writes pointers and flags into nearby stack memory, and more serious consequences are considered possible only in special circumstances.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:52Z"},"euvd":{"id":"EUVD-2024-47336","exploited":false,"provenance":"source"}}