« List of all CVEs

CVE-2024-7264

ASN.1 date parser overread

Published: 7/31/2024 Last updated: 2/13/2025 Reserved: 7/30/2024

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.

CNA assigner: curl (2499f714-1537-4658-8207-48ae4bb9eae9) Requested by: n/a

Metrics

Version Score Severity Vector String
3.1 6.3 Medium CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Opam packages affected (3)

conf-libcurl conf-mingw-w64-curl-i686 conf-mingw-w64-curl-x86_64

Products affected (1)

Product Vendor Version
curl curl CPU:1.9.3 FPGA:10.19

References (7)

Credits (2)