Out-of-bounds Read in Curl
CVE-2024-7264
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()` 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.
Vulnerability class: Buffer Overflow
EPSS: 0.173 (96.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected products
- Curl — versions 8.9.0, 8.8.0, 8.7.1
- Haxx Libcurl
Weakness classification (CWE)
Public proof-of-concept exploits
References
- 2499f714-1537-4658-8207-48ae4bb9eae9 (Vendor Advisory)
- 2499f714-1537-4658-8207-48ae4bb9eae9 (Vendor Advisory)
- 2499f714-1537-4658-8207-48ae4bb9eae9 (Permissions Required, Exploit, Third Party Advisory, Issue Tracking)
- 2499f714-1537-4658-8207-48ae4bb9eae9 (Mailing List)
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-7264?
- CVE-2024-7264 is a medium-severity vulnerability in Curl, classified under Out-of-bounds Read. CVSS score: 6.5/10. Published 2024-07-31.
- How severe is CVE-2024-7264?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2024-7264 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.