---
id: CVE-2024-7264
title: |-
  libcurl's ASN1 parser code has the `GTime2str()` function, used for parsing an
  ASN.1 Generalized Time field
summary: |-
  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 …
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-125
vendor: haxx
product: libcurl
affected:
  - 'libcurl >= 7.32.0, < 8.9.1'
patched:
  - libcurl 8.9.1
published: '2024-07-31'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:19:20.450'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-7264'
references:
  - url: 'http://www.openwall.com/lists/oss-security/2024/07/31/1'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2024-7264.html'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2024-7264.json'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/2629968'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://www.openwall.com/lists/oss-security/2024/07/31/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20240828-0008/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20241025-0006/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20241025-0010/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-089022.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-355557.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.20202
epssPercentile: 0.97442
ingestedAt: '2026-10-15T03:30:12.730Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-08-01T20:05:41.315706Z'
scores:
  nvd: 6.5
  adp: 6.3
---

## Overview

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.

## Affected

- `libcurl >= 7.32.0, < 8.9.1`

## Remediation

Upgrade past the affected range:

- `libcurl 8.9.1`
