# CVE-2022-39354: evm has incorrect is_static parameter for custom stateful precompiles

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2022-10-25T00:00:00.000Z
- Modified: 2026-06-17T04:58:12.167Z
- Also known as: GHSA-hhc4-47rh-cr34, RUSTSEC-2022-0083
- Weaknesses: CWE-670
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- rust-blockchain evm: < 0.36.0
- evm (crates.io): before 0.36.0; from 0.0.0-0 before 0.36.0
- evm_project evm: before 0.36.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34> (third-party-advisory, web)
- <https://github.com/rust-blockchain/evm/pull/133> (patch, 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> (advisory, web)
- <https://crates.io/crates/evm> (package)

## Sources

- CVE List: [CVE-2022-39354](https://www.cve.org/CVERecord?id=CVE-2022-39354), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-hhc4-47rh-cr34](https://github.com/advisories/GHSA-hhc4-47rh-cr34), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0083](https://rustsec.org/advisories/RUSTSEC-2022-0083.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2022-39354](https://nvd.nist.gov/vuln/detail/CVE-2022-39354), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39354 · Whole record: https://cve.day/CVE-2022-39354.json · Rebuilt by cve.day 2026-11-25T22:58:16.007Z
