Security mailing lists by PureSourceCode

CVE-2022-39354

HIGH 7.5CVSS 3.1

Incorrect 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD evm_project evm
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.