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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | mecab | 0.996-2.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:8 | mecab | 0.996-2.module_el8.6.0+3340+d764b636 | ALSA-2025:1673 |
| AlmaLinux:8 | mecab-devel | 0.996-2.module_el8.6.0+3340+d764b636 | ALSA-2025:1673 |
| AlmaLinux:8 | mecab-devel | 0.996-2.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:8 | mecab-ipadic | 2.7.0.20070801-17.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:8 | mecab-ipadic-EUCJP | 2.7.0.20070801-17.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:8 | mysql | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-common | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-common | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-devel | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-devel | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-errmsg | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-errmsg | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-libs | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-libs | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-server | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-server | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| AlmaLinux:8 | mysql-test | 8.0.41-1.module_el8.10.0+3965+b415b607 | ALSA-2025:1673 |
| AlmaLinux:9 | mysql-test | 8.0.41-2.el9_5 | ALSA-2025:1671 |
| Alpine:v3.20 | curl | 8.9.1-r0 | ALPINE-CVE-2024-7264 |
| Alpine:v3.21 | curl | 8.9.1-r0 | ALPINE-CVE-2024-7264 |
| Alpine:v3.22 | curl | 8.9.1-r0 | ALPINE-CVE-2024-7264 |
| Alpine:v3.23 | curl | 8.9.1-r0 | ALPINE-CVE-2024-7264 |
| Alpine:v3.24 | curl | 8.9.1-r0 | ALPINE-CVE-2024-7264 |
| Debian:12 | curl | 7.88.1-10+deb12u7 | DEBIAN-CVE-2024-7264 |
| Debian:13 | curl | 8.9.1-1 | DEBIAN-CVE-2024-7264 |
| Debian:14 | curl | 8.9.1-1 | DEBIAN-CVE-2024-7264 |
| Rocky Linux:8 | mecab | 0:0.996-2.module+el8.10.0+1676+9b4b6e24 | RLSA-2025:1673 |
| Rocky Linux:8 | mecab-ipadic | 0:2.7.0.20070801-17.module+el8.10.0+1937+28fbbc83 | RLSA-2025:1673 |
| Rocky Linux:8 | mysql | 0:8.0.41-1.module+el8.10.0+1937+28fbbc83.0.1 | RLSA-2025:1673 |
| Rocky Linux:9 | mysql | 0:8.0.41-2.el9_5 | RLSA-2025:1671 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.17 | USN-6944-1 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.17 | UBUNTU-CVE-2024-7264 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.2 | USN-6944-1 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.2 | UBUNTU-CVE-2024-7264 |
Affected products (as reported)
References
- json
- www
- issue
- http://www.openwall.com/lists/oss-security/2024/07/31/1
- https://github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519
- https://security.netapp.com/advisory/ntap-20240828-0008/
- https://security.netapp.com/advisory/ntap-20241025-0010/
- https://security.netapp.com/advisory/ntap-20241025-0006/
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html
- https://cert-portal.siemens.com/productcert/html/ssa-089022.html