{"id":"CVE-2022-39354","published":"2022-10-25T00:00:00Z","modified":"2025-04-23T16:43:37Z","title":"evm has incorrect is_static parameter for custom stateful precompiles","vendor":"rust-blockchain","product":"evm","tier":"tail","description":{"text":"SputnikVM, also called evm, is a Rust implementation of Ethereum Virtual Machine. A custom stateful precompile can use the `is_static` parameter to determine if the call is executed in a static context (via `STATICCALL`), and thus decide if stateful operations should be done. Prior to version 0.36.0, the passed `is_static` parameter was incorrect -- it was only set to `true` if the call came from a direct `STATICCALL` opcode. However, once a static call context is entered, it should stay static. The issue only impacts custom precompiles that actually uses `is_static`. For those affected, the issue can lead to possible incorrect state transitions. Version 0.36.0 contains a patch. There are no known workarounds.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00773,"percentile":0.52099,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34","tags":[]},{"url":"https://github.com/rust-blockchain/evm/pull/133","tags":[]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":10.42},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"rust-blockchain","affectedVersions":[{"vendor":"rust-blockchain","product":"evm","versions":["< 0.36.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:55:44.553418Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"evm","vulnerableRanges":["<0.36.0",">=0.0.0-0, <0.36.0"],"patched":["0.36.0"],"from":["GHSA-hhc4-47rh-cr34","RUSTSEC-2022-0083"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-7106","exploited":false,"provenance":"source"}}