{"id":"CVE-2023-40591","aliases":["CVE-2023-40591","GHSA-ppjg-v974-84cm","GO-2023-2046"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of service via malicious p2p message in go-ethereum","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA vulnerable node, can be made to consume unbounded amounts of memory when handling specially crafted p2p messages sent from an attacker node.\n\n### Details\n\nThe 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.\n\n### Patches\n\nThe fix is included in geth version `1.12.1-stable`, i.e, `1.12.2-unstable` and onwards. \n\nFixed by https://github.com/ethereum/go-ethereum/pull/27887\n\n### Workarounds\n\nNo known workarounds. \n\n### Credits\n\nThis bug was reported by Patrick McHardy and reported via [bounty@ethereum.org](mailto:bounty@ethereum.org). \n\n### References","format":"markdown","source":"ghsa"},{"lang":"en","text":"Unbounded memory consumption in github.com/ethereum/go-ethereum","format":"markdown","source":"go"},{"lang":"es","text":"go-ethereum (geth) es una implementación de la capa de ejecución golang del protocolo Ethereum. Se puede hacer que un nodo vulnerable consuma cantidades ilimitadas de memoria cuando se manejan mensajes p2p especialmente manipulados enviados desde un nodo atacante. La corrección se incluye en la versión de geth '1.12.1-stable', es decir, '1.12.2-unstable' y posteriores. Se recomienda a los usuarios que actualicen. No hay workarounds conocidas para esta vulnerabilidad.","source":"nvd"}],"published":"2023-09-06T18:07:20.899Z","modified":"2026-09-10T03:49:58.385Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 1.12.1-stable","status":"affected"}],"vendor":"ethereum","product":"go-ethereum","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.12.1-stable","status":"affected"}],"vendor":"ethereum","product":"go_ethereum","cpe":"cpe:2.3:a:ethereum:go_ethereum:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.1-stable"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.1"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"go"},{"ranges":[{"status":"affected","introduced":"1.10.0","fixed":"1.12.1"}],"vendor":"ethereum","product":"go_ethereum","cpe":"cpe:2.3:a:ethereum:go_ethereum:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ethereum/go-ethereum/security/advisories/GHSA-ppjg-v974-84cm","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://geth.ethereum.org/docs/developers/geth-developer/disclosures","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ethereum/go-ethereum/releases/tag/v1.12.1","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40591","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/go-ethereum","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-09-26T14:47:36.804Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40591","url":"https://www.cve.org/CVERecord?id=CVE-2023-40591","licence":"CVE Terms of Use","modified":"2024-09-26T15:19:33.428Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ppjg-v974-84cm","url":"https://github.com/advisories/GHSA-ppjg-v974-84cm","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:58.385Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2046","url":"https://pkg.go.dev/vuln/GO-2023-2046","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:08.965Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40591","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40591","licence":"Public domain","modified":"2026-06-17T06:18:36.990Z"}],"updatedAt":"2026-11-25T22:58:27.736Z","epss":{"score":0.01121,"percentile":0.67147,"date":"2026-12-02T12:00:21.000Z"}}