CVE-2023-40591: Denial of service via malicious p2p message in go-ethereum

Published Sep 6, 2023
·
Updated

Impact

A vulnerable node, can be made to consume unbounded amounts of memory when handling specially crafted p2p messages sent from an attacker node.

Details

The p2p handler spawned a new goroutine to respond to ping requests. By flooding a node with ping requests, an unbounded number of goroutines can be created, leading to resource exhaustion and potentially crash due to OOM.

Patches

The fix is included in geth version 1.12.1-stable, i.e, 1.12.2-unstable and onwards.

Fixed by https://github.com/ethereum/go-ethereum/pull/27887

Workarounds

No known workarounds.

Credits

This bug was reported by Patrick McHardy and reported via bounty@ethereum.org.

References

Other sources

go-ethereum (geth) is a golang execution layer implementation of the Ethereum protocol. A vulnerable node, can be made to consume unbounded amounts of memory when handling specially crafted p2p messages sent from an attacker node. The fix is included in geth version 1.12.1-stable, i.e, 1.12.2-unstable and onwards. Users are advised to upgrade. There are no known workarounds for this vulnerability.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/ethereum/go-ethereum<1.12.1-stable
1.12.1-stable
Ethereum Go Ethereum>=1.10.0<1.12.1

Event History

Sep 6, 2023
CVE Published
via MITRE·06:07 PM
Data Sourced
via MITRE·06:07 PM
DescriptionSeverityWeakness
Advisory Published
07:49 PM

Frequently Asked Questions

1

What is the impact of CVE-2023-40591?

A vulnerable node can be made to consume unbounded amounts of memory when handling specially crafted p2p messages sent from an attacker node.

2

Which software versions are affected by CVE-2023-40591?

Versions up to and excluding 1.12.1-stable of go-ethereum (geth) are affected.

3

How can I fix CVE-2023-40591?

Upgrade to version 1.12.1-stable or higher of go-ethereum (geth).

4

What is the severity of CVE-2023-40591?

The vulnerability has a severity score of 7.5 (high).

5

Is there any additional information available for CVE-2023-40591?

You can find additional information about this vulnerability in the official vulnerability disclosure policy and the release notes of go-ethereum (geth) version 1.12.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203