GHSA-4xc9-8hmq-j652
go-ethereum vulnerable to DoS via malicious p2p message
Quick fix
GHSA-4xc9-8hmq-j652 — github.com/ethereum/go-ethereum: upgrade to the fixed version with the command below.
go get github.com/ethereum/go-ethereum@v1.13.15Details
### 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.13.15go get github.com/ethereum/go-ethereum@v1.13.15References
- https://github.com/ethereum/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-32972[ADVISORY]
- https://github.com/advisories/GHSA-4xc9-8hmq-j652[ADVISORY]
- https://github.com/ethereum/go-ethereum[PACKAGE]
- https://github.com/ethereum/go-ethereum/compare/v1.13.14...v1.13.15[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:golang/github.com/ethereum/go-ethereum"]}'