6.5
MEDIUM
CVE-2024-7264
libcurl ASN1 Parser Heap Buffer Overflow
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.

INFO

Published Date :

July 31, 2024, 8:15 a.m.

Last Modified :

Oct. 30, 2024, 8:35 p.m.

Source :

2499f714-1537-4658-8207-48ae4bb9eae9

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2024-7264 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-7264 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Haxx curl
2 Haxx libcurl
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-7264.

URL Resource
http://www.openwall.com/lists/oss-security/2024/07/31/1 Mailing List
https://curl.se/docs/CVE-2024-7264.html Vendor Advisory
https://curl.se/docs/CVE-2024-7264.json Vendor Advisory
https://hackerone.com/reports/2629968 Exploit Issue Tracking Permissions Required Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Shell Python

Updated: 2 months, 4 weeks ago
0 stars 1 fork 1 watcher
Born at : March 19, 2021, 11:41 a.m. This repo has been linked 81 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-7264 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-7264 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 30, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
  • Initial Analysis by [email protected]

    Aug. 12, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2024/07/31/1 No Types Assigned http://www.openwall.com/lists/oss-security/2024/07/31/1 Mailing List
    Changed Reference Type https://curl.se/docs/CVE-2024-7264.html No Types Assigned https://curl.se/docs/CVE-2024-7264.html Vendor Advisory
    Changed Reference Type https://curl.se/docs/CVE-2024-7264.json No Types Assigned https://curl.se/docs/CVE-2024-7264.json Vendor Advisory
    Changed Reference Type https://hackerone.com/reports/2629968 No Types Assigned https://hackerone.com/reports/2629968 Exploit, Issue Tracking, Permissions Required, Third Party Advisory
    Added CWE NIST CWE-125
    Added CPE Configuration OR *cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:* versions from (including) 7.32.0 up to (excluding) 8.9.1
  • CVE Modified by 2499f714-1537-4658-8207-48ae4bb9eae9

    Jul. 31, 2024

    Action Type Old Value New Value
    Added Reference curl http://www.openwall.com/lists/oss-security/2024/07/31/1 [No types assigned]
  • CVE Received by 2499f714-1537-4658-8207-48ae4bb9eae9

    Jul. 31, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference curl https://curl.se/docs/CVE-2024-7264.json [No types assigned]
    Added Reference curl https://curl.se/docs/CVE-2024-7264.html [No types assigned]
    Added Reference curl https://hackerone.com/reports/2629968 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-7264 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-7264 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability