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
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.202, 97.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Curl — versions 8.9.0, 8.8.0, 8.7.1
- Haxx Libcurl
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, Nucl3arAt0m/Elevate-Labs-Task-3, SruthinagaK/linux-manual-vulnerabitltiy-labscan-June2025). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- json (Vendor Advisory)
- www (Vendor Advisory)
- issue (Permissions Required, Exploit, Third Party Advisory, Issue Tracking)
- www.openwall.com/lists/oss-security/2024/07/31/1 (Mailing List)
- github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519
- security.netapp.com/advisory/ntap-20240828-0008/
- security.netapp.com/advisory/ntap-20241025-0006/
- security.netapp.com/advisory/ntap-20241025-0010/
- cert-portal.siemens.com/productcert/html/ssa-089022.html
- cert-portal.siemens.com/productcert/html/ssa-355557.html