rust-ethereum EVM up to 0.41.0 record_external_operation improper check or handling of exceptional conditions
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.7 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in rust-ethereum EVM up to 0.41.0. This vulnerability affects the function record_external_operation. Executing a manipulation can lead to improper check or handling of exceptional conditions.
This vulnerability appears as CVE-2024-21629. The attack may be performed from remote. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability has been found in rust-ethereum EVM up to 0.41.0 and classified as problematic. This vulnerability affects the function record_external_operation. The manipulation with an unknown input leads to a improper check or handling of exceptional conditions vulnerability. The CWE definition for the vulnerability is CWE-703. The product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product. As an impact it is known to affect integrity. CVE summarizes:
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.
The weakness was presented 01/03/2024 as GHSA-27wg-99g8-2v4v. The advisory is available at github.com. This vulnerability was named CVE-2024-21629 since 12/29/2023. Technical details are known, but there is no available exploit.
Upgrading to version 0.41.1 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch d8991ec727ad0fb64fe9957a3cd307387a6701e4 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Vendor
Name
Version
- 0.1
- 0.2
- 0.3
- 0.4
- 0.5
- 0.6
- 0.7
- 0.8
- 0.9
- 0.10
- 0.11
- 0.12
- 0.13
- 0.14
- 0.15
- 0.16
- 0.17
- 0.18
- 0.19
- 0.20
- 0.21
- 0.22
- 0.23
- 0.24
- 0.25
- 0.26
- 0.27
- 0.28
- 0.29
- 0.30
- 0.31
- 0.32
- 0.33
- 0.34
- 0.35
- 0.36
- 0.37
- 0.38
- 0.39
- 0.40
- 0.41.0
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.7VulDB Meta Temp Score: 5.7
VulDB Base Score: 3.7
VulDB Temp Score: 3.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CNA Base Score: 5.9
CNA Vector (GitHub, Inc.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Improper check or handling of exceptional conditionsCWE: CWE-703
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: EVM 0.41.1
Patch: d8991ec727ad0fb64fe9957a3cd307387a6701e4
Timeline
12/29/2023 🔍01/03/2024 🔍
01/03/2024 🔍
01/23/2024 🔍
Sources
Product: github.comAdvisory: GHSA-27wg-99g8-2v4v
Status: Confirmed
CVE: CVE-2024-21629 (🔍)
GCVE (CVE): GCVE-0-2024-21629
GCVE (VulDB): GCVE-100-249538
Entry
Created: 01/03/2024 09:08Updated: 01/23/2024 08:51
Changes: 01/03/2024 09:08 (53), 01/23/2024 08:51 (11)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.