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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
curl curl
Default version status: unaffected
8.9.0 to ≤ 8.9.0affected8.8.0 to ≤ 8.8.0affected8.7.1 to ≤ 8.7.1affected8.7.0 to ≤ 8.7.0affected8.6.0 to ≤ 8.6.0affected8.5.0 to ≤ 8.5.0affected8.4.0 to ≤ 8.4.0affected8.3.0 to ≤ 8.3.0affected8.2.1 to ≤ 8.2.1affected8.2.0 to ≤ 8.2.0affected8.1.2 to ≤ 8.1.2affected8.1.1 to ≤ 8.1.1affected8.1.0 to ≤ 8.1.0affected8.0.1 to ≤ 8.0.1affected8.0.0 to ≤ 8.0.0affected7.88.1 to ≤ 7.88.1affected7.88.0 to ≤ 7.88.0affected7.87.0 to ≤ 7.87.0affected7.86.0 to ≤ 7.86.0affected7.85.0 to ≤ 7.85.0affected7.84.0 to ≤ 7.84.0affected7.83.1 to ≤ 7.83.1affected7.83.0 to ≤ 7.83.0affected7.82.0 to ≤ 7.82.0affected7.81.0 to ≤ 7.81.0affected7.80.0 to ≤ 7.80.0affected7.79.1 to ≤ 7.79.1affected7.79.0 to ≤ 7.79.0affected7.78.0 to ≤ 7.78.0affected7.77.0 to ≤ 7.77.0affected7.76.1 to ≤ 7.76.1affected7.76.0 to ≤ 7.76.0affected7.75.0 to ≤ 7.75.0affected7.74.0 to ≤ 7.74.0affected7.73.0 to ≤ 7.73.0affected7.72.0 to ≤ 7.72.0affected7.71.1 to ≤ 7.71.1affected7.71.0 to ≤ 7.71.0affected7.70.0 to ≤ 7.70.0affected7.69.1 to ≤ 7.69.1affected7.69.0 to ≤ 7.69.0affected7.68.0 to ≤ 7.68.0affected7.67.0 to ≤ 7.67.0affected7.66.0 to ≤ 7.66.0affected7.65.3 to ≤ 7.65.3affected7.65.2 to ≤ 7.65.2affected7.65.1 to ≤ 7.65.1affected7.65.0 to ≤ 7.65.0affected7.64.1 to ≤ 7.64.1affected7.64.0 to ≤ 7.64.0affected7.63.0 to ≤ 7.63.0affected7.62.0 to ≤ 7.62.0affected7.61.1 to ≤ 7.61.1affected7.61.0 to ≤ 7.61.0affected7.60.0 to ≤ 7.60.0affected7.59.0 to ≤ 7.59.0affected7.58.0 to ≤ 7.58.0affected7.57.0 to ≤ 7.57.0affected7.56.1 to ≤ 7.56.1affected7.56.0 to ≤ 7.56.0affected7.55.1 to ≤ 7.55.1affected7.55.0 to ≤ 7.55.0affected7.54.1 to ≤ 7.54.1affected7.54.0 to ≤ 7.54.0affected7.53.1 to ≤ 7.53.1affected7.53.0 to ≤ 7.53.0affected7.52.1 to ≤ 7.52.1affected7.52.0 to ≤ 7.52.0affected7.51.0 to ≤ 7.51.0affected7.50.3 to ≤ 7.50.3affected7.50.2 to ≤ 7.50.2affected7.50.1 to ≤ 7.50.1affected7.50.0 to ≤ 7.50.0affected7.49.1 to ≤ 7.49.1affected7.49.0 to ≤ 7.49.0affected7.48.0 to ≤ 7.48.0affected7.47.1 to ≤ 7.47.1affected7.47.0 to ≤ 7.47.0affected7.46.0 to ≤ 7.46.0affected7.45.0 to ≤ 7.45.0affected7.44.0 to ≤ 7.44.0affected7.43.0 to ≤ 7.43.0affected7.42.1 to ≤ 7.42.1affected7.42.0 to ≤ 7.42.0affected7.41.0 to ≤ 7.41.0affected7.40.0 to ≤ 7.40.0affected7.39.0 to ≤ 7.39.0affected7.38.0 to ≤ 7.38.0affected7.37.1 to ≤ 7.37.1affected7.37.0 to ≤ 7.37.0affected7.36.0 to ≤ 7.36.0affected7.35.0 to ≤ 7.35.0affected7.34.0 to ≤ 7.34.0affected7.33.0 to ≤ 7.33.0affected7.32.0 to ≤ 7.32.0affected
References
- https://curl.se/docs/CVE-2024-7264.json ↗
- https://curl.se/docs/CVE-2024-7264.html ↗
- https://hackerone.com/reports/2629968 ↗
- 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 ↗