evm has incorrect is_static parameter for custom stateful precompiles
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| rust-blockchain | evm | before 0.36.0 | 0.36.0 | Patch available | CNA |
| — | evm (crates.io) | before 0.36.0 | 0.36.0 | Patch available | GHSA-hhc4-47rh-cr34 |
- evm Vendorrust-blockchain Affected before 0.36.0 Fixed in 0.36.0 Patch available CNA
- evm (crates.io) Vendor— Affected before 0.36.0 Fixed in 0.36.0 Patch available GHSA-hhc4-47rh-cr34
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:evm_project:evm:*:*:*:*:*:rust:*:* | before 0.36.0 | Vulnerable | rust-blockchain |
- cpe:2.3:a:evm_project:evm:*:*:*:*:*:rust:*:* Versions before 0.36.0 Vulnerable ·rust-blockchain
Remediation
- Fix · CNA evm (rust-blockchain) Fixed in 0.36.0
- Fix · GHSA-hhc4-47rh-cr34 evm (crates.io) Fixed in 0.36.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39354
- 2026-10-03 Alias added: GHSA-hhc4-47rh-cr34
- 2026-10-23 EPSS moved to the 50th–90th percentile
References
More rust-blockchain Evm vulnerabilities
- TI-2021-17992 Specification non-compliance in JUMPI CVSS 3.1CRITICAL 9.8
- TI-2024-14354 Erroneous handling of `record_external_operation` error return CVSS 3.1HIGH 7.5
- TI-2021-10219 Memory over-allocation in evm crate CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-39354 · CVE Program
- CVE-2022-39354 · NVD
- FIRST EPSS
- GHSA-hhc4-47rh-cr34 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences