# CVE-2024-7264: ASN.1 date parser overread

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 20.2%, higher than 97% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-31T08:00:00.000Z
- Modified: 2026-10-25T01:05:03.464Z
- Also known as: CURL-CVE-2024-7264
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: curl

## Description

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.

(As written by CVE List.)

## Affected

- curl curl: from 8.9.0 up to 8.9.0; from 8.8.0 up to 8.8.0; from 8.7.1 up to 8.7.1; from 8.7.0 up to 8.7.0; from 8.6.0 up to 8.6.0; from 8.5.0 up to 8.5.0; from 8.4.0 up to 8.4.0; from 8.3.0 up to 8.3.0; from 8.2.1 up to 8.2.1; from 8.2.0 up to 8.2.0; from 8.1.2 up to 8.1.2; from 8.1.1 up to 8.1.1; and 83 more
- https://github.com/curl/curl.git: from 7.32.0 before 8.9.1; from 3a24cb7bc456366cbc3a03f7ab6d2576105a1f2d before 27959ecce75cdb2809c0bdb3286e60e08fadb519
- haxx libcurl: from 7.32.0 before 8.9.1

## Every score

- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- curl: rating Low
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://hackerone.com/reports/2629968> (exploit, issue-tracking, permissions-required, third-party-advisory)
- <https://curl.se/docs/CVE-2024-7264.json> (vendor-advisory)
- <https://curl.se/docs/CVE-2024-7264.html> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/07/31/1> (mailing-list)
- <https://github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519>
- <https://security.netapp.com/advisory/ntap-20240828-0008/>
- <https://security.netapp.com/advisory/ntap-20241025-0010/>
- <https://security.netapp.com/advisory/ntap-20241025-0006/>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-089022.html>

## Sources

- CVE List: [CVE-2024-7264](https://www.cve.org/CVERecord?id=CVE-2024-7264), CVE Terms of Use, modified 2026-10-15
- curl: [CURL-CVE-2024-7264](https://osv.dev/vulnerability/CURL-CVE-2024-7264), MIT, modified 2026-10-25
- NVD: [CVE-2024-7264](https://nvd.nist.gov/vuln/detail/CVE-2024-7264), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-7264 · Whole record: https://cve.day/CVE-2024-7264.json · Rebuilt by cve.day 2026-11-25T22:58:43.466Z
