{"id":"CVE-2021-41153","published":"2021-10-18T21:00:13Z","modified":"2024-08-04T02:59:31Z","title":"Specification non-compliance in JUMPI","vendor":"rust-blockchain","product":"evm","tier":"tail","description":{"text":"The evm crate is a pure Rust implementation of Ethereum Virtual Machine. In `evm` crate `< 0.31.0`, `JUMPI` opcode's condition is checked after the destination validity check. However, according to Geth and OpenEthereum, the condition check should happen before the destination validity check. This is a **high** severity security advisory if you use `evm` crate for Ethereum mainnet. In this case, you should update your library dependency immediately to on or after `0.31.0`. This is a **low** severity security advisory if you use `evm` crate in Frontier or in a standalone blockchain, because there's no security exploit possible with this advisory. It is **not** recommended to update to on or after `0.31.0` until all the normal chain upgrade preparations have been done. If you use Frontier or other `pallet-evm` based Substrate blockchain, please ensure to update your `spec_version` before updating this. For other blockchains, please make sure to follow a hard-fork process before you update this.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01028,"percentile":0.62814,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-pvh2-pj76-4m96","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-blockchain/evm/pull/67","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":12.56},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"rust-blockchain","affectedVersions":[{"vendor":"rust-blockchain","product":"evm","versions":["< 0.31.0"]}],"affected":[{"ecosystem":"crates.io","package":"evm","vulnerableRanges":["<0.31.0"],"patched":["0.31.0"],"from":["GHSA-pvh2-pj76-4m96"],"provenance":"source"}],"summary":{"text":"The JUMPI opcode in the evm crate, a pure Rust Ethereum Virtual Machine implementation from rust-blockchain, checks its condition after the destination validity check, whereas Geth and OpenEthereum check the condition first, a spec non-compliance affecting versions before 0.31.0. An attacker with network access and no privileges can exploit this in a blockchain that uses the evm crate for Ethereum mainnet, with high complexity and a changed scope, though the advisory states that Frontier and standalone chains face no exploit risk.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:09Z"},"euvd":{"id":"EUVD-2021-2242","exploited":false,"provenance":"source"}}