CVE-2024-21629: Rust EVM - Undefined
- Cve: CVE-2024-21629
- Name: Rust EVM - Undefined
- Description: Rust EVM is an Ethereum Virtual Machine interpreter. In `rust-evm`, a feature called `record_external_operation` was introduced, allowing library users to record custom gas changes. This feature can have some bogus interactions with the call stack. In particular, during finalization of a `CREATE` or `CREATE2`, in the case that the substack execution happens successfully, `rust-evm` will first commit the substate, and then call `record_external_operation(Write(out_code.len()))`. If `record_external_operation` later fails, this error is returned to the parent call stack, instead of `Succeeded`. Yet, the substate commitment already happened. This causes smart contracts able to commit state changes, when the parent caller contract receives zero address (which usually indicates that the execution has failed). This issue only impacts library users with custom `record_external_operation` that returns errors. The issue is patched in release 0.41.1. No known workarounds are available.
- Impact: Smart contracts may incorrectly commit state changes even when execution has failed, leading to potential state inconsistency or unintended contract behavior.
- Remediation: Update to version 0.41.1 or later.
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00577
- Epss percentile: 0.48464
- Assignee: [email protected]
- Published at: 2024-01-02T22:15:09Z
- Age in days: 1057
- Modified at: 2026-06-17T07:09:52Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-21629
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-703 | Improper Check or Handling of Exceptional Conditions |
| NVD-CWE-noinfo | — |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| evm_project:evm | < 0.41.1 | no | nvd | /v1/products/evm_project/evm |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rust-ethereum/evm | commit, fix, package, pull, security_advisory | yes | /v1/repositories/rust-ethereum/evm |
Index
- Repositories: 6
- Repositories high signal: 4
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts