libcurl ASN1 Parser Heap Overflow via Invalid Generalized Time
CVE-2024-7264 Published on July 31, 2024

ASN.1 date parser overread
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.

NVD

Vulnerability Analysis

CVE-2024-7264 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be low. considered to have a small impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
LOW

Products Associated with CVE-2024-7264

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-7264 are published in these products:

 
 
 
 
 
 
 
 
 
 
 

Affected Versions

curl: Siemens RUGGEDCOM RST2428P: Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family: Siemens SCALANCE XCH328: Siemens SCALANCE XCM324: Siemens SCALANCE XCM328: Siemens SCALANCE XCM332: Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC): Siemens SCALANCE XRM334 (230 V AC, 12xFO): Siemens SCALANCE XRM334 (230 V AC, 8xFO): Siemens SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+): Siemens SCALANCE XRM334 (24 V DC, 12xFO): Siemens SCALANCE XRM334 (24 V DC, 8xFO): Siemens SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+): Siemens SCALANCE XRM334 (2x230 V AC, 12xFO): Siemens SCALANCE XRM334 (2x230 V AC, 8xFO): Siemens SCALANCE XRM334 (2x230V AC, 2x10G, 24xSFP, 8xSFP+): Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP: Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP: Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP: Siemens RUGGEDCOM RST2428P: Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family: Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 family:

Exploit Probability

EPSS
17.30%
Percentile
97.05%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.