CVE-2024-7264
ASN.1 date parser overread
Reported by curl · Published July 31, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ecs-service-connect-agent | Amazon Linux | v1.29.9.0-1.amzn2023 |
| curl | Wolfi | 8.9.1-r0 |
| curl | Alpine | 8.9.1-r0 |
| curl | Chainguard | 8.9.1-r0 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) | Siemens | 3.3 |
| SCALANCE XRM334 (24 V DC, 12xFO) | Siemens | 3.3 |
| RUGGEDCOM RST2428P | Siemens | 3.3, 3.2 |
| SCALANCE XRM334 (2x230 V AC, 8xFO) | Siemens | 3.3 |
| SCALANCE XCM-/XRM-/XCH-/XRH-300 family | Siemens | 3.2 |
| SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | Siemens | 3.3, 3.2 |
| SCALANCE XRM334 (2x230 V AC, 12xFO) | Siemens | 3.3 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| curl | curl | 8.9.0, 8.8.0, 8.7.1 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) | 0 |
| Siemens | SCALANCE XRM334 (24 V DC, 12xFO) | 0 |
| Siemens | RUGGEDCOM RST2428P | 0, 0 |
| Siemens | SCALANCE XRM334 (2x230 V AC, 8xFO) | 0 |
| amazon:2023 | ecs-service-connect-agent | 0 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0, 0 |
| Siemens | SCALANCE XRM334 (2x230 V AC, 12xFO) | 0 |
| Siemens | SCALANCE XRH334 (24 V DC, 8xFO, CC) | 0 |
| wolfi | curl | 0 |
| Siemens | SCALANCE XRM334 (24 V DC, 8xFO) | 0 |
| Siemens | SCALANCE XRM334 (230 V AC, 8xFO) | 0 |
| Siemens | SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+) | 0 |
| alpine | curl | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SCALANCE XCM324 | 0 |
| Siemens | SCALANCE XCM328 | 0 |
…and 6 more
Timeline
- Jul 31, 2024 CVE Published
- Aug 1, 2024 EPSS Score (30 in total, the first dated here)
- Aug 1, 2024 PoC Published (2 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (15 in total, the first dated here)
- Mar 17, 2026 Security Advisory (16 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-7264
vulnetix vdb fixes CVE-2024-7264
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-7264/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- json
- www
- issue
- https://github.com/curl/curl/commit/27959ecce75cdb2809c0bdb3286e60e08fadb519 url
- https://security.netapp.com/advisory/ntap-20240828-0008/ url
- https://security.netapp.com/advisory/ntap-20241025-0010/ url
- https://security.netapp.com/advisory/ntap-20241025-0006/ url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html url
- https://cert-portal.siemens.com/productcert/html/ssa-089022.html url