7.5
HIGH
CVE-2024-6197
Libcurl ASN1 Parser Stack Buffer Overflow
Description

libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes `free()` on a 4 byte localstack buffer. Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the `free()` implementation; likely to be memory pointers and a set of flags. The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.

INFO

Published Date :

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

Last Modified :

Aug. 26, 2024, 3:25 p.m.

Source :

2499f714-1537-4658-8207-48ae4bb9eae9

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2024-6197 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-6197.

URL Resource
http://www.openwall.com/lists/oss-security/2024/07/24/1 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2024/07/24/5 Mailing List Third Party Advisory
https://curl.se/docs/CVE-2024-6197.html Vendor Advisory
https://curl.se/docs/CVE-2024-6197.json Vendor Advisory
https://hackerone.com/reports/2559516 Exploit Issue Tracking Technical Description

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).

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-6197 vulnerability anywhere in the article.

  • The Hacker News
Microsoft Issues Security Update Fixing 118 Flaws, Two Actively Exploited in the Wild

Microsoft has released security updates to fix a total of 118 vulnerabilities across its software portfolio, two of which have come under active exploitation in the wild. Of the 118 flaws, three are r ... Read more

Published Date: Oct 09, 2024 (1 month ago)
  • TheCyberThrone
Microsoft Patch Tuesday – October 2024

Microsoft patched 117 CVEs in October 2024 Patch Tuesday release, with three rated critical, 113 rated important and one rated moderate.27 Elevation of Privilege vulnerabilities7 Security Feature Bypa ... Read more

Published Date: Oct 09, 2024 (1 month ago)
  • Cybersecurity News
Microsoft’s October 2024 Patch Tuesday: Zero-Day Exploits and Critical Vulnerabilities Patched

Microsoft’s October 2024 Patch Tuesday delivered a crucial set of security updates, addressing a total of 121 vulnerabilities across its ecosystem. This includes three critical vulnerabilities and 114 ... Read more

Published Date: Oct 09, 2024 (1 month ago)
  • The Register
Microsoft issues 117 patches – some for flaws already under attack

Patch Tuesday It's the second Tuesday of the month, which means Patch Tuesday, bringing with it fixes for numerous flaws, bugs and vulnerabilities in major software. And this one is a doozy. Microsoft ... Read more

Published Date: Oct 08, 2024 (1 month ago)
  • Dark Reading
5 CVEs in Microsoft's October Update to Patch Immediately

Source: fadfebrian via ShutterstockMicrosoft's October security update addressed a substantial 117 vulnerabilities, including two actively exploited flaws and three publicly disclosed but as yet unexp ... Read more

Published Date: Oct 08, 2024 (1 month ago)
  • Help Net Security
Microsoft patches two zero-days exploited in the wild (CVE-2024-43573, CVE-2024-43572)

For October 2024 Patch Tuesday, Microsoft has released fixes for 117 security vulnerabilities, including two under active exploitation: CVE-2024-43573, a spoofing bug affecting the Windows MSHTML Plat ... Read more

Published Date: Oct 08, 2024 (1 month ago)

The following table lists the changes that have been made to the CVE-2024-6197 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.

  • Initial Analysis by [email protected]

    Aug. 26, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2024/07/24/1 No Types Assigned http://www.openwall.com/lists/oss-security/2024/07/24/1 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2024/07/24/5 No Types Assigned http://www.openwall.com/lists/oss-security/2024/07/24/5 Mailing List, Third Party Advisory
    Changed Reference Type https://curl.se/docs/CVE-2024-6197.html No Types Assigned https://curl.se/docs/CVE-2024-6197.html Vendor Advisory
    Changed Reference Type https://curl.se/docs/CVE-2024-6197.json No Types Assigned https://curl.se/docs/CVE-2024-6197.json Vendor Advisory
    Changed Reference Type https://hackerone.com/reports/2559516 No Types Assigned https://hackerone.com/reports/2559516 Exploit, Issue Tracking, Technical Description
    Added CWE NIST NVD-CWE-Other
    Added CPE Configuration OR *cpe:2.3:a:haxx:libcurl:*:*:*:*:*:*:*:* versions from (including) 8.6.0 up to (excluding) 8.9.0
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 01, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • CVE Modified by 2499f714-1537-4658-8207-48ae4bb9eae9

    Jul. 24, 2024

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

    Jul. 24, 2024

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

    Jul. 24, 2024

    Action Type Old Value New Value
    Added Description libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes `free()` on a 4 byte localstack buffer. Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the `free()` implementation; likely to be memory pointers and a set of flags. The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.
    Added Reference curl https://curl.se/docs/CVE-2024-6197.json [No types assigned]
    Added Reference curl https://curl.se/docs/CVE-2024-6197.html [No types assigned]
    Added Reference curl https://hackerone.com/reports/2559516 [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-6197 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-6197 weaknesses.

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