{"id":"CVE-2020-26241","aliases":["CVE-2020-26241","GHSA-69v6-xc2j-r2jf","GO-2022-0771"],"related":[],"kind":"vulnerability","state":"published","title":"Shallow copy bug in geth","summary":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. This is a Consensus vulnerability in Geth before version 1.9.17 which can be used to cause a chain-split where vulnerable nodes reject the canonical chain. Geth's pre-compiled dataCopy (at 0x00...04) contract did a shallow copy on invocation. An attacker could deploy a contract that writes X to an EVM memory region R, then calls 0x00..04 with R as an argument, then overwrites R to Y, and finally invokes the RETURNDATACOPY opcode. When this contract is invoked, a consensus-compliant node would push X on the EVM stack, whereas Geth would push Y. This is fixed in version 1.9.17.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. This is a Consensus vulnerability in Geth before version 1.9.17 which can be used to cause a chain-split where vulnerable nodes reject the canonical chain. Geth's pre-compiled dataCopy (at 0x00...04) contract did a shallow copy on invocation. An attacker could deploy a contract that writes X to an EVM memory region R, then calls 0x00..04 with R as an argument, then overwrites R to Y, and finally invokes the RETURNDATACOPY opcode. When this contract is invoked, a consensus-compliant node would push X on the EVM stack, whereas Geth would push Y. This is fixed in version 1.9.17.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis is a Consensus vulnerability, which can be used to cause a chain-split where vulnerable nodes reject the canonical chain. \n\nGeth’s pre-compiled `dataCopy` (at `0x00...04`) contract did a shallow copy on invocation. An attacker could deploy a contract that \n\n- writes `X` to an EVM memory region `R`,\n- calls `0x00..04` with `R` as an argument,\n- overwrites `R` to `Y`,\n- and finally invokes the `RETURNDATACOPY` opcode.\n\nWhen this contract is invoked, a consensus-compliant node would push `X` on the EVM stack, whereas Geth would push `Y`.\n\n\n### Patches\n\nNo standalone patches have been made. \n\n### Workarounds\n\nUpgrade to `1.9.17` or higher.\n\n### References\n\nhttps://blog.ethereum.org/2020/11/12/geth_security_release/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [go-ethereum](https://github.com/ethereum/go-ethereum)\n* Email us at [security@ethereum.org](mailto:security@ethereum.org)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Shallow copy bug in geth in github.com/ethereum/go-ethereum","format":"markdown","source":"go"},{"lang":"es","text":"Go Ethereum, o \"Geth\", es la implementación oficial Golang del protocolo Ethereum.&#xa0;Esta es una vulnerabilidad de Consensus en Geth versiones anteriores a 1.9.17 que puede ser usada para causar una división de cadena donde unos nodos vulnerables rechazan la cadena canónica.&#xa0;El contrato de copia de datos precompilado de Geth (en 0x00 ... 04) hizo una copia superficial en la invocación.&#xa0;Un atacante podría implementar un contrato que escribe X en una región de memoria R de EVM, luego llama a 0x00..04 con R como argumento, luego sobrescribe R en Y y finalmente invoca el código de operación RETURNDATACOPY.&#xa0;Cuando este contrato es invocado, un nodo consensus-compliant empujaría X en la pila de EVM, mientras que Geth empujaría Y. Esto es corregido en la versión 1.9.17","source":"nvd"}],"published":"2020-11-25T01:25:20.000Z","modified":"2026-07-08T06:00:35.934Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:P","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-682"],"affected":[{"ranges":[{"version":">= 1.9.7, < 1.9.17","status":"affected"}],"vendor":"ethereum","product":"go-ethereum","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.9.7","status":"affected","fixed":"1.9.17"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.9.7","status":"affected","fixed":"1.9.17"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"go"},{"ranges":[{"status":"affected","fixed":"1.9.17"}],"vendor":"ethereum","product":"go_ethereum","cpe":"cpe:2.3:a:ethereum:go_ethereum:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://blog.ethereum.org/2020/11/12/geth_security_release/","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ethereum/go-ethereum/security/advisories/GHSA-69v6-xc2j-r2jf","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26241","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/go-ethereum/commit/295693759e5ded05fec0b2fb39359965b60da785","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://blog.ethereum.org/2020/11/12/geth_security_release","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/go-ethereum","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26241","url":"https://www.cve.org/CVERecord?id=CVE-2020-26241","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:03.871Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-69v6-xc2j-r2jf","url":"https://github.com/advisories/GHSA-69v6-xc2j-r2jf","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:35.934Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0771","url":"https://pkg.go.dev/vuln/GO-2022-0771","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:50.860Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26241","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26241","licence":"Public domain","modified":"2026-06-17T03:07:54.053Z"}],"updatedAt":"2026-11-25T22:57:55.947Z","epss":{"score":0.01226,"percentile":0.69675,"date":"2026-12-01T12:00:22.000Z"}}