CVE-2022-39354
Last modified
CVE-2022-39354 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.54% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Evm Project | Evm | < 0.36.0 |
References
- https://github.com/rust-blockchain/evm/pull/133Patch, Third Party Advisory
- https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34Third Party Advisory
- https://github.com/rust-blockchain/evm/pull/133Patch, Third Party Advisory
- https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-39354?
How severe is CVE-2022-39354?
How do I fix CVE-2022-39354?
Are you affected by CVE-2022-39354?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
