Skip to main content
VulnerabilityPublished Updated

CVE-2024-7264: curl · libcurl's ASN1 parser code has the GTime2str() function, used for parsing an ASN.1 Generalized Time

Affects curlSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.5 Medium · fixed in 7.35.0-1ubuntu2.20+esm18 : update curl when convenient.

Data as of 24 Nov 2026, 19:25 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 7.35.0-1ubuntu2.20+esm18, 7.47.0-1ubuntu2.19+esm13, 7.58.0-2ubuntu3.24+esm5 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 31 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=nobleOther threatsAffected
  • <8.5.0-2ubuntu10.2
Fixed in
  • 8.5.0-2ubuntu10.2
Ubuntu 22.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=jammyOther threatsAffected
  • <7.81.0-1ubuntu1.17
Fixed in
  • 7.81.0-1ubuntu1.17
Ubuntu 20.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=focalOther threatsAffected
  • <7.68.0-1ubuntu2.23
Fixed in
  • 7.68.0-1ubuntu2.23
Ubuntu Pro 18.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <7.58.0-2ubuntu3.24+esm5
Fixed in
  • 7.58.0-2ubuntu3.24+esm5
Ubuntu Pro 16.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=esm-infra/xenialOther threatsAffected
  • <7.47.0-1ubuntu2.19+esm13
Fixed in
  • 7.47.0-1ubuntu2.19+esm13
Ubuntu Pro 14.04 LTScurlpkg:deb/ubuntu/curl?arch=source&distro=trusty/esmOther threatsAffected
  • <7.35.0-1ubuntu2.20+esm18
Fixed in
  • 7.35.0-1ubuntu2.20+esm18

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…