CVE-2024-7264

ASN.1 date parser overread

State
Published
Severity
6.3 Medium
Published
Jul 31, 2024
Updated
Oct 15, 2026
Reserved
Jul 30, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
curlcurl
  • 8.9.0 through 8.9.0Affected
  • 8.8.0 through 8.8.0Affected
  • 8.7.1 through 8.7.1Affected
  • 8.7.0 through 8.7.0Affected
  • 8.6.0 through 8.6.0Affected
  • 8.5.0 through 8.5.0Affected
  • 8.4.0 through 8.4.0Affected
  • 8.3.0 through 8.3.0Affected
  • 8.2.1 through 8.2.1Affected
  • 8.2.0 through 8.2.0Affected
  • 8.1.2 through 8.1.2Affected
  • 8.1.1 through 8.1.1Affected
  • 8.1.0 through 8.1.0Affected
  • 8.0.1 through 8.0.1Affected
  • 8.0.0 through 8.0.0Affected
  • 7.88.1 through 7.88.1Affected
  • 7.88.0 through 7.88.0Affected
  • 7.87.0 through 7.87.0Affected
  • 7.86.0 through 7.86.0Affected
  • 7.85.0 through 7.85.0Affected
  • 7.84.0 through 7.84.0Affected
  • 7.83.1 through 7.83.1Affected
  • 7.83.0 through 7.83.0Affected
  • 7.82.0 through 7.82.0Affected
  • 7.81.0 through 7.81.0Affected
  • and 70 more versions

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.