Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-6197— freeing stack buffer in utf8asn1str

Quick assessment

Affected
curl curl
Exploitation
High exploitation probability; assess promptly
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libcurl是cURL开源的一个免费且易于使用的客户端 URL 传输库。 libcurl ASN1 8.6.0到8.8.0版本存在安全漏洞,该漏洞源于当检测到无效字段并返回错误时,utf8asn1str()函数会调用free()释放一个4字节的本地栈缓冲区。有些现代malloc实现会接受输入指针并将其添加到可用内存块列表中,可能导致覆盖附近的堆栈内存,引起程序崩溃。

AI Predicted 5.5 Difficulty: Hard EPSS 4.30% · P91
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-6197

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
freeing stack buffer in utf8asn1str
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
libcurl 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
libcurl是cURL开源的一个免费且易于使用的客户端 URL 传输库。 libcurl ASN1 8.6.0到8.8.0版本存在安全漏洞,该漏洞源于当检测到无效字段并返回错误时,utf8asn1str()函数会调用free()释放一个4字节的本地栈缓冲区。有些现代malloc实现会接受输入指针并将其添加到可用内存块列表中,可能导致覆盖附近的堆栈内存,引起程序崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
curl curl 8.8.0 ~ 8.8.0 -

II. Public POCs for CVE-2024-6197

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-6197

请登录查看更多情报信息。

Mailing List Discussions for CVE-2024-6197 (2)

Other References for CVE-2024-6197 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2024-6197

No comments yet


Leave a comment