{"id":"CVE-2020-26265","aliases":["CVE-2020-26265","GHSA-xw37-57qp-9mm4","GO-2021-0105"],"related":[],"kind":"vulnerability","state":"published","title":"Consensus flaw during block processing","summary":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. In Geth from version 1.9.4 and before version 1.9.20 a consensus-vulnerability could cause a chain split, where vulnerable versions refuse to accept the canonical chain. The fix was included in the Paragade release version 1.9.20. No individual workaround patches have been made -- all users are recommended to upgrade to a newer version.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. In Geth from version 1.9.4 and before version 1.9.20 a consensus-vulnerability could cause a chain split, where vulnerable versions refuse to accept the canonical chain. The fix was included in the Paragade release version 1.9.20. No individual workaround patches have been made -- all users are recommended to upgrade to a newer version.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA consensus-vulnerability in Geth could cause a chain split, where vulnerable versions refuse to accept the canonical chain. \n\n### Description\n\n\nA flaw was repoted at 2020-08-11 by John Youngseok Yang (Software Platform Lab), where a particular sequence of transactions could cause a consensus failure.\n\n- Tx 1:\n  - `sender` invokes `caller`.\n  - `caller` invokes `0xaa`. `0xaa` has 3 wei, does a self-destruct-to-self\n  - `caller` does a  `1 wei` -call to `0xaa`, who thereby has 1 wei (the code in `0xaa` still executed, since the tx is still ongoing, but doesn't redo the selfdestruct, it takes a different path if callvalue is non-zero)\n\n- Tx 2:\n  - `sender` does a 5-wei call to 0xaa. No exec (since no code). \n\nIn geth, the result would be that `0xaa` had `6 wei`, whereas OE reported (correctly) `5` wei. Furthermore, in geth, if the second tx was not executed, the `0xaa` would be destructed, resulting in `0 wei`. Thus obviously wrong. \n\nIt was determined that the root cause was this [commit](https://github.com/ethereum/go-ethereum/commit/223b950944f494a5b4e0957fd9f92c48b09037ad) from [this PR](https://github.com/ethereum/go-ethereum/pull/19953). The semantics of `createObject` was subtly changd, into returning a non-nil object (with `deleted=true`) where it previously did not if the account had been destructed. This return value caused the new object to inherit the old `balance`:\n\n```golang\nfunc (s *StateDB) CreateAccount(addr common.Address) {\n\tnewObj, prev := s.createObject(addr)\n\tif prev != nil {\n\t\tnewObj.setBalance(prev.data.Balance)\n\t}\n}\n```\n\nIt was determined that the minimal possible correct fix was\n\n```diff\n+++ b/core/state/statedb.go\n@@ -589,7 +589,10 @@ func (s *StateDB) createObject(addr common.Address) (newobj, prev *stateObject)\n                s.journal.append(resetObjectChange{prev: prev, prevdestruct: prevdestruct})\n        }\n        s.setStateObject(newobj)\n-       return newobj, prev\n+       if prev != nil && !prev.deleted {\n+               return newobj, prev\n+       }\n+       return newobj, nil\n```\n\n### Patches\n\nSee above. The fix was included in Geth `v1.9.20` \"Paragade\".\n\n### Credits\n\nThe bug was found by @johnyangk and reported via bounty@ethereum.org.\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":"Due to an incorrect state calculation, a specific set of transactions could cause a consensus disagreement, causing users of this package to reject a canonical chain.","format":"markdown","source":"go"},{"lang":"es","text":"Go Ethereum, o \"Geth\", es la implementación oficial de Golang del protocolo Ethereum.&#xa0;En Geth desde versión 1.9.4 y versiones anteriores a 1.9.20, una vulnerabilidad de consenso podría causar una división de cadena, donde unas versiones vulnerables se niegan a aceptar la cadena canónica.&#xa0;La corrección se incluyó en versión 1.9.20 de la versión de Paragade.&#xa0;No han sido hechos parches de solución individual; se recomienda a todos los usuarios actualizar a una versión más reciente","source":"nvd"}],"published":"2020-12-11T16:45:15.000Z","modified":"2026-09-10T03:49:15.235Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-682"],"affected":[{"ranges":[{"version":">= 1.9.4, < 1.9.20","status":"affected"}],"vendor":"ethereum","product":"go-ethereum","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.9.4","status":"affected","fixed":"1.9.20"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.9.4","status":"affected","fixed":"1.9.20"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"go"},{"ranges":[{"status":"affected","introduced":"1.9.4","fixed":"1.9.20"}],"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-xw37-57qp-9mm4","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ethereum/go-ethereum/releases/tag/v1.9.20","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26265","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/go-ethereum/pull/21080","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/ethereum/go-ethereum/pull/21409","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ethereum/go-ethereum/commit/87c0ba92136a75db0ab2aba1046d4a9860375d6a","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/ethereum/go-ethereum","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0105","tags":["web"],"sources":["ghsa"]}],"credits":["John Youngseok Yang (Software Platform Lab)"],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26265","url":"https://www.cve.org/CVERecord?id=CVE-2020-26265","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:03.493Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xw37-57qp-9mm4","url":"https://github.com/advisories/GHSA-xw37-57qp-9mm4","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:15.235Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0105","url":"https://pkg.go.dev/vuln/GO-2021-0105","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26265","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26265","licence":"Public domain","modified":"2026-06-17T03:07:57.407Z"}],"updatedAt":"2026-11-25T22:57:56.182Z","epss":{"score":0.0092,"percentile":0.61315,"date":"2026-12-01T12:00:22.000Z"}}