CVE-2022-39354
HIGH 7.5CVSS 3.1Incorrect is_static parameter for custom stateful precompiles in SputnikVM (evm)
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.
- Published
- 25 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-670
- Also known as
- GHSA-hhc4-47rh-cr34RUSTSEC-2022-0083
- Sources
- NVDJSONOSV GHSA-hhc4-47rh-cr34JSONOSV RUSTSEC-2022-0083JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | evm_project | evmcpe:2.3:a:evm_project:evm:*:*:*:*:*:rust:*:* |
< 0.36.0 | 0.36.0 |
| OSV | crates.io | evm | < 0.36.0 | 0.36.0 |
| OSV | crates.io | evm | >= 0.0.0-0, < 0.36.0 | 0.36.0 |
References
- https://github.com/rust-blockchain/evm/pull/133 · Patch, Third Party Advisory, WEB
- https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39354 · ADVISORY
- https://github.com/rust-blockchain/evm · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2022-0083.html · WEB, ADVISORY
- https://crates.io/crates/evm · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 25 Oct 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Oct 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Oct 2022)