{"id":"CVE-2020-26242","aliases":["CVE-2020-26242","GHSA-jm5c-rv3w-w83m","GO-2021-0103"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of service in geth","summary":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. In Geth before version 1.9.18, there is a Denial-of-service (crash) during block processing. This is fixed in 1.9.18.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Go Ethereum, or \"Geth\", is the official Golang implementation of the Ethereum protocol. In Geth before version 1.9.18, there is a Denial-of-service (crash) during block processing. This is fixed in 1.9.18.","source":"cvelist"},{"lang":"en","text":"### Impact\nDenial-of-service (crash) during block processing\n\n### Details\n\nAffected versions suffer from a vulnerability which can be exploited through the `MULMOD` operation, by specifying a modulo of `0`: `mulmod(a,b,0)`, causing a `panic` in the underlying library. \nThe crash was in the `uint256` library, where a buffer [underflowed](https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L442).\n\n\tif `d == 0`, `dLen` remains `0`\n\nand https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L451 will try to access index `[-1]`.\n\nThe `uint256` library was first merged in this [commit](https://github.com/ethereum/go-ethereum/commit/cf6674539c589f80031f3371a71c6a80addbe454), on 2020-06-08. \nExploiting this vulnerabilty would cause all vulnerable nodes to drop off the network. \n\nThe issue was brought to our attention through a [bug report](https://github.com/ethereum/go-ethereum/issues/21367), showing a `panic` occurring on sync from genesis on the Ropsten network.\n \nIt was estimated that the least obvious way to fix this would be to merge the fix into `uint256`, make a new release of that library and then update the geth-dependency.\n\n- https://github.com/holiman/uint256/releases/tag/v1.1.1 was made the same day, \n- PR to address the issue: https://github.com/holiman/uint256/pull/80 \n- PR to update geth deps: https://github.com/ethereum/go-ethereum/pull/21368 \n\n\n\n### Patches\n\nUpgrade to v1.9.18 or higher\n\n### Workarounds\n\nNot at this time\n\n### References\n\nhttps://blog.ethereum.org/2020/11/12/geth_security_release/\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 improper bounds checking, certain mathematical operations can cause a panic via an out of bounds read. If this package is used to process untrusted user inputs, this may be used as a vector for a denial of service attack.","format":"markdown","source":"go"},{"lang":"es","text":"Go Ethereum, o \"Geth\", es la implementación oficial de Golang del protocolo Ethereum.&#xa0;En Geth versiones anteriores a 1.9.18, se presenta una Denegación de servicio (bloqueo) durante el procesamiento de bloques.&#xa0;Esto es corregido en la versión 1.9.18","source":"nvd"}],"published":"2020-11-25T01:25:15.000Z","modified":"2026-07-08T05:59:51.548Z","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:N/A:H","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:N/A:H","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:N/A:H","score":6.5,"rating":"MEDIUM"},{"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"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-125","CWE-191","CWE-400"],"affected":[{"ranges":[{"version":"< 1.9.18","status":"affected"}],"vendor":"ethereum","product":"go-ethereum","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.9.16","status":"affected","fixed":"1.9.18"}],"ecosystem":"Go","package":"github.com/ethereum/go-ethereum","purl":"pkg:golang/github.com/ethereum/go-ethereum","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/holiman/uint256","purl":"pkg:golang/github.com/holiman/uint256","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/holiman/uint256","purl":"pkg:golang/github.com/holiman/uint256","source":"go"},{"ranges":[{"status":"affected","fixed":"1.9.18"}],"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-jm5c-rv3w-w83m","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://blog.ethereum.org/2020/11/12/geth_security_release/","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26242","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/holiman/uint256/pull/80","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/ethereum/go-ethereum/commit/7163a6664ee664df81b9028ab3ba13b9d65a7196","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/holiman/uint256/commit/6785da6e3eea403260a5760029e722aa4ff1716d","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"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0103","tags":["web"],"sources":["ghsa"]}],"credits":["Dima Stebaev"],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26242","url":"https://www.cve.org/CVERecord?id=CVE-2020-26242","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:03.570Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jm5c-rv3w-w83m","url":"https://github.com/advisories/GHSA-jm5c-rv3w-w83m","licence":"CC-BY-4.0","modified":"2026-07-08T05:59:51.548Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0103","url":"https://pkg.go.dev/vuln/GO-2021-0103","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26242","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26242","licence":"Public domain","modified":"2026-06-17T03:07:54.180Z"}],"updatedAt":"2026-11-25T22:57:55.948Z","epss":{"score":0.0148,"percentile":0.74673,"date":"2026-12-01T12:00:22.000Z"}}