{"api_version":"1","generated_at":"2026-06-19T10:30:13+00:00","cve":"CVE-2022-39354","urls":{"html":"https://cve.report/CVE-2022-39354","api":"https://cve.report/api/cve/CVE-2022-39354.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39354","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39354"},"summary":{"title":"CVE-2022-39354","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-10-25 19:15:00","updated_at":"2022-10-28 19:37:00"},"problem_types":["CWE-670"],"metrics":[],"references":[{"url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34","name":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34","refsource":"CONFIRM","tags":[],"title":"Incorrect is_static parameter for custom stateful precompiles · Advisory · rust-blockchain/evm · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/rust-blockchain/evm/pull/133","name":"https://github.com/rust-blockchain/evm/pull/133","refsource":"MISC","tags":[],"title":"Allow is_static to be passed to precompiles by sorpaas · Pull Request #133 · rust-blockchain/evm · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39354","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39354","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39354","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"evm_project","cpe5":"evm","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39354","STATE":"PUBLIC","TITLE":"evm has incorrect is_static parameter for custom stateful precompiles"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"evm","version":{"version_data":[{"version_value":"< 0.36.0"}]}}]},"vendor_name":"rust-blockchain"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-670: Always-Incorrect Control Flow Implementation"}]}]},"references":{"reference_data":[{"name":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34","refsource":"CONFIRM","url":"https://github.com/rust-blockchain/evm/security/advisories/GHSA-hhc4-47rh-cr34"},{"name":"https://github.com/rust-blockchain/evm/pull/133","refsource":"MISC","url":"https://github.com/rust-blockchain/evm/pull/133"}]},"source":{"advisory":"GHSA-hhc4-47rh-cr34","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-10-25 19:15:00","lastModifiedDate":"2022-10-28 19:37:00","problem_types":["CWE-670"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:evm_project:evm:*:*:*:*:*:rust:*:*","versionEndExcluding":"0.36.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}