rust-ethereum EVM up to 0.41.0 record_external_operation improper check or handling of exceptional conditions

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.7$0-$5k0.00

Summaryinfo

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.

Detailsinfo

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.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.7
VulDB 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.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Improper check or handling of exceptional conditions
CWE: 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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: EVM 0.41.1
Patch: d8991ec727ad0fb64fe9957a3cd307387a6701e4

Timelineinfo

12/29/2023 🔍
01/03/2024 +5 days 🔍
01/03/2024 +0 days 🔍
01/23/2024 +20 days 🔍

Sourcesinfo

Product: github.com

Advisory: GHSA-27wg-99g8-2v4v
Status: Confirmed

CVE: CVE-2024-21629 (🔍)
GCVE (CVE): GCVE-0-2024-21629
GCVE (VulDB): GCVE-100-249538

Entryinfo

Created: 01/03/2024 09:08
Updated: 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.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!