Vulnerability · Published Jul 31, 2024 · Assigned by curl

CVE-2024-7264ASN.1 date parser overread

Medium 6.3

In plain English

A medium-severity security flaw in curl from curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 20.2% (higher than 97% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)20.2%top 2.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8mecab0.996-2.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:8mecab0.996-2.module_el8.6.0+3340+d764b636ALSA-2025:1673
AlmaLinux:8mecab-devel0.996-2.module_el8.6.0+3340+d764b636ALSA-2025:1673
AlmaLinux:8mecab-devel0.996-2.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:8mecab-ipadic2.7.0.20070801-17.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:8mecab-ipadic-EUCJP2.7.0.20070801-17.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:8mysql8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-common8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-common8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-devel8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-devel8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-errmsg8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-errmsg8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-libs8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-libs8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-server8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-server8.0.41-2.el9_5ALSA-2025:1671
AlmaLinux:8mysql-test8.0.41-1.module_el8.10.0+3965+b415b607ALSA-2025:1673
AlmaLinux:9mysql-test8.0.41-2.el9_5ALSA-2025:1671
Alpine:v3.20curl8.9.1-r0ALPINE-CVE-2024-7264
Alpine:v3.21curl8.9.1-r0ALPINE-CVE-2024-7264
Alpine:v3.22curl8.9.1-r0ALPINE-CVE-2024-7264
Alpine:v3.23curl8.9.1-r0ALPINE-CVE-2024-7264
Alpine:v3.24curl8.9.1-r0ALPINE-CVE-2024-7264
Debian:12curl7.88.1-10+deb12u7DEBIAN-CVE-2024-7264
Debian:13curl8.9.1-1DEBIAN-CVE-2024-7264
Debian:14curl8.9.1-1DEBIAN-CVE-2024-7264
Rocky Linux:8mecab0:0.996-2.module+el8.10.0+1676+9b4b6e24RLSA-2025:1673
Rocky Linux:8mecab-ipadic0:2.7.0.20070801-17.module+el8.10.0+1937+28fbbc83RLSA-2025:1673
Rocky Linux:8mysql0:8.0.41-1.module+el8.10.0+1937+28fbbc83.0.1RLSA-2025:1673
Rocky Linux:9mysql0:8.0.41-2.el9_5RLSA-2025:1671
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.17USN-6944-1
Ubuntu:22.04:LTScurl7.81.0-1ubuntu1.17UBUNTU-CVE-2024-7264
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.2USN-6944-1
Ubuntu:24.04:LTScurl8.5.0-2ubuntu10.2UBUNTU-CVE-2024-7264

Affected products (as reported)

VendorProductVersions
curl curl 8.9.0 – through 8.9.08.8.0 – through 8.8.08.7.1 – through 8.7.18.7.0 – through 8.7.08.6.0 – through 8.6.08.5.0 – through 8.5.08.4.0 – through 8.4.08.3.0 – through 8.3.0

References