Libcurl · Libcurl · CVE-2024-6197
**Name of the Vulnerable Software and Affected Versions**
libcurl (affected versions not specified)
**Description**
The issue is related to libcurl's ASN1 parser, specifically the `utf8asn1str()` function used for parsing an ASN.1 UTF-8 string. When an invalid field is detected, the function returns an error and invokes `free()` on a 4-byte local stack buffer. This can lead to the overwriting of nearby stack memory, with the content of the overwrite decided by the `free()` implementation, likely including memory pointers and a set of flags. The most likely outcome of exploiting this flaw is a crash, although more serious results cannot be ruled out in special circumstances. According to JFrog security researchers, the preconditions for vulnerability are more extensive than initially believed, making real-world exploitation very difficult.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.