Shallow copy bug in geth
Moderate severity
GitHub Reviewed
Published
Nov 24, 2020
in
ethereum/go-ethereum
•
Updated Jan 30, 2025
Package
Affected versions
>= 1.9.7, < 1.9.17
Patched versions
1.9.17
Description
Reviewed
May 21, 2021
Published to the GitHub Advisory Database
Jun 29, 2021
Last updated
Jan 30, 2025
Impact
This is a Consensus vulnerability, which can be used to cause a chain-split where vulnerable nodes reject the canonical chain.
Geth’s pre-compiled
dataCopy(at0x00...04) contract did a shallow copy on invocation. An attacker could deploy a contract thatXto an EVM memory regionR,0x00..04withRas an argument,RtoY,RETURNDATACOPYopcode.When this contract is invoked, a consensus-compliant node would push
Xon the EVM stack, whereas Geth would pushY.Patches
No standalone patches have been made.
Workarounds
Upgrade to
1.9.17or higher.References
https://blog.ethereum.org/2020/11/12/geth_security_release/
For more information
If you have any questions or comments about this advisory:
References