CVE-2022-36025 Incorrect Conversion between Numeric Types in Besu Ethereum Client
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2022-36025?
CVE-2022-36025 is a critical vulnerability in hyperledger besu, published on 24 Sep 2022.
Official description
Besu is a Java-based Ethereum client. In versions newer than 22.1.3 and prior to 22.7.1, Besu is subject to an Incorrect Conversion between Numeric Types. An error in 32 bit signed and unsigned types in the calculation of available gas in the CALL operations (including DELEGATECALL) results in incorrect gas being passed into called contracts and incorrect gas being returned after call execution. Where the amount of gas makes a difference in the success or failure, or if the gas is a negative 64 bit value, the execution will result in a different state root than expected, resulting in a consensus failure in networks with multiple EVM implementations. In networks with a single EVM implementation this can be used to execute with significantly more gas than then transaction requested, possibly exceeding gas limitations. This issue is patched in version 22.7.1. As a workaround, reverting to version 22.1.3 or earlier will prevent incorrect execution.
Which versions are affected by CVE-2022-36025?
2 open source packages ship an affected version, including org.hyperledger.besu:evm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.hyperledger.besu:evm Maven | From 22.4.0-RC1 | 22.7.1 |
org.hyperledger.besu:evm Maven | From 22.4.0-RC1 | 22.7.1 |
Products include Linuxfoundation Besu.
How do I fix CVE-2022-36025?
Upgrade org.hyperledger.besu:evm to 22.7.1 or later.
Is CVE-2022-36025 being exploited?
There is no known exploitation of CVE-2022-36025 in the wild and no public exploit code.
Other vulnerabilities in hyperledger besu
Sources
Also known as GHSA-4456-w38r-m53x.