CVE-2024-7264
Published: 31 July 2024
Summary
CVE-2024-7264 is a medium-severity Out-of-bounds Read (CWE-125) vulnerability in Haxx Libcurl. Its CVSS base score is 6.5 (Medium).
Operationally, ranked in the top 24.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
CVE-2024-7264 affects libcurl's ASN.1 parser, specifically the GTime2str() function responsible for handling Generalized Time fields. When presented with a syntactically invalid field, the code sets the time-fraction length to -1, causing strlen() to read from a heap buffer that is not guaranteed to be null-terminated. The flaw is tracked under CWE-125 and carries a CVSS 3.1 score of 6.5.
An attacker can trigger the issue by supplying a crafted certificate or ASN.1 structure during TLS handshakes or other operations that invoke certificate parsing. Successful exploitation most often produces a crash, but when an application subsequently calls CURLINFO_CERTINFO the same path may return adjacent heap contents to the caller, resulting in limited information disclosure. The attack requires user interaction or a malicious server and needs no privileges on the target system.
The EPSS score for the vulnerability rose from a low baseline to a peak of 0.0536 on 2025-12-11 before receding to its current value of 0.0088, indicating a measurable but temporary increase in exploitation interest after disclosure. Public advisories and patch information are available at the listed curl.se and Openwall references.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-48211
Vulnerability details
libcurl's ASN1 parser code has the `GTime2str()` function, used for parsing an ASN.1 Generalized Time field. If given an syntactically incorrect field, the parser might end up using -1 for the length of the *time fraction*, leading to a `strlen()`…
more
getting performed on a pointer to a heap buffer area that is not (purposely) null terminated. This flaw most likely leads to a crash, but can also lead to heap contents getting returned to the application when [CURLINFO_CERTINFO](https://curl.se/libcurl/c/CURLINFO_CERTINFO.html) is used.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
No mitigating controls mapped yet. The per-CVE control annotator has not reached this CVE.