# JLSEC-2025-38: libcurl's ASN1 parser code has the `GTime2str()` function, used for parsing an ASN.1 Generalized...

- Severity: Medium 6.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-10-10T15:04:01.319Z
- Modified: 2026-07-25T18:23:42.975Z
- Related: CVE-2024-7264

## 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 Julia Security Advisories.)

## Affected

- CURL_jll (Julia): before 8.9.1+0
- LibCURL_jll (Julia): before 8.9.1+0

## References

- <http://www.openwall.com/lists/oss-security/2024/07/31/1> (web)
- <https://curl.se/docs/CVE-2024-7264.html> (web)
- <https://curl.se/docs/CVE-2024-7264.json> (web)
- <https://github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519> (web)
- <https://hackerone.com/reports/2629968> (web)
- <https://security.netapp.com/advisory/ntap-20240828-0008/> (web)
- <https://security.netapp.com/advisory/ntap-20241025-0006/> (web)
- <https://security.netapp.com/advisory/ntap-20241025-0010/> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-38](https://osv.dev/vulnerability/JLSEC-2025-38), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2025-38 · Whole record: https://cve.day/JLSEC-2025-38.json · Rebuilt by cve.day 2026-11-25T22:56:25.809Z
