CVE-2024-32972: Github.com/ethereum/go ethereum Denial of Service Vulnerability
HIGHCVE-2024-32972 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/ethereum/go ethereum libraries in the Go ecosystem. The issue involves go-ethereum vulnerable to dos via malicious p2p message. Remediation is available by upgrading affected packages to version 1.13.15.
CVE-2024-32972 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-32972
To remediate this vulnerability, upgrade all affected Github.com/ethereum/go ethereum dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/ethereum/go-ethereum to 1.13.15
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/ethereum/go-ethereum
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-32972, inspect your project dependencies for Github.com/ethereum/go ethereum:
inspect dependencies for github.com/ethereum/go-ethereum
Analyze the terminal output to locate any version of Github.com/ethereum/go ethereum in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.15), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/ethereum/go ethereum, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-32972 Affected Github.com/ethereum/go ethereum Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ethereum/go-ethereum
|
Go |
< 1.13.15
|
1.13.15
|
References
Frequently Asked Questions
What is CVE-2024-32972?
Which Github.com/ethereum/go ethereum versions are affected?
What version fixes CVE-2024-32972?
Is github.com/ethereum/go-ethereum affected?
What is the CVSS score of CVE-2024-32972?
What CWE is associated with CVE-2024-32972?
How can I check Go dependencies for CVE-2024-32972?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4xc9-8hmq-j652",
"modified" : "2024-08-16T18:15:47Z",
"published" : "2024-05-06T14:20:40Z",
"aliases" : [ "CVE-2024-32972" ],
"summary" : "go-ethereum vulnerable to DoS via malicious p2p message",
"details" : "### Impact\n\nA vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node.\n\nIn order to carry out the attack, the attacker establishes a peer connections to the victim, and sends a malicious `GetBlockHeadersRequest` message with a `count` of `0`, using the `ETH` protocol. \n\nIn `descendants := chain.GetHeadersFrom(num+count-1, count-1)`, the value of `count-1` is passed to the function `GetHeadersFrom(number, count uint64)` as parameter `count`. Due to integer overflow, `UINT64_MAX` value is then passed as the `count` argument to function `GetHeadersFrom(number, count uint64)`. This allows an attacker to bypass `maxHeadersServe` and request all headers from the latest block back to the genesis block. \n\n### Patches\n\nThe fix has been included in geth version `1.13.15` and onwards. \n\nThe vulnerability was patched in: https://github.com/ethereum/go-ethereum/pull/29534\n\n### Workarounds\n\nNo workarounds have been made public. \n\n### References\n\nNo more information is released at this time.\n\n### Credit\n\nThis issue was disclosed responsibly by DongHan Kim via the Ethereum bug bounty program. Thank you for your cooperation. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/ethereum/go-ethereum"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.13.15"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32972"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-4xc9-8hmq-j652"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ethereum/go-ethereum"
}, {
"type" : "WEB",
"url" : "https://github.com/ethereum/go-ethereum/compare/v1.13.14...v1.13.15"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-06T14:20:40Z",
"nvd_published_at" : "2024-05-06T15:15:23Z"
}
}