CVE-2024-32972: go-ethereum vulnerable to DoS via malicious p2p message
Impact A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node. In 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.
Published May 6, 2024 · Updated Aug 16, 2024
Affected packages
github.com/ethereum/go-ethereum
- Ecosystem
- Go
- Affected
- < 1.13.15
- Fixed in
- 1.13.15
- Check
go list -m github.com/ethereum/go-ethereum
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node.
In 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.
In 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.
Patches
The fix has been included in geth version 1.13.15 and onwards.
The vulnerability was patched in: https://github.com/ethereum/go-ethereum/pull/29534
Workarounds
No workarounds have been made public.
References
No more information is released at this time.
Credit
This issue was disclosed responsibly by DongHan Kim via the Ethereum bug bounty program. Thank you for your cooperation.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-26313
Go Ethereum affected by DoS via malicious p2p message
medium6.9Feb 18, 2026CVE-2026-26314
Go Ethereum affected by DoS via malicious p2p message
high8.7Feb 18, 2026CVE-2026-26315
Go Ethereum Improperly Validates the ECIES Public Key in RLPx Handshake
medium6.9Feb 18, 2026CVE-2026-22862
go-ethereum is vulnerable to DoS via malicious p2p message affecting a vulnerable node
high7.1Jan 13, 2026CVE-2026-22868
go-ethereum is vulnerable to high CPU usage leading to DoS via malicious p2p message
high7.1Jan 13, 2026CVE-2025-24883
Go Ethereum vulnerable to DoS via malicious p2p message
medium6.6Jan 30, 2025
