CVE-2022-36025CWE-196CWE-681

Incorrect Conversion between Numeric Types in Besu Ethereum Client

Critical · published September 24, 2022

CVSS v3.1
9.1
EPSS
1%
Percentile
64.1
In the wild
Unconfirmed
What it is

🔥 A sneaky miscalculation in gas management can lead to consensus chaos! This bug in Besu affects versions 22.1.3 to 22.7.1 and might just let crafty transactions overreach their limits! Think of it like a restaurant where the chef miscalculates the ingredients for a dish. If the kitchen thinks they have infinite supplies, they might cook up a storm, but if everyone orders wildly different meals, chaos will ensue when the bills come due. If exploited, a single contract could execute with an inflated gas amount, skewing the entire network's consensus. This could lead to transaction failures or even state roots that don’t match reality, potentially catastrophic for the integrity of the network!

Put simply

Think of it like a restaurant where the chef miscalculates the ingredients for a dish. If the kitchen thinks they have infinite supplies, they might cook up a storm, but if everyone orders wildly different meals, chaos will ensue when the bills come due. This vulnerability stems from an incorrect conversion between 32-bit signed and unsigned numeric types during gas calculations, which can cause executed calls to use inappropriate amounts, resulting in failed transactions and consensus issues.

What to do

If exploited, a single contract could execute with an inflated gas amount, skewing the entire network's consensus. This could lead to transaction failures or even state roots that don’t match reality, potentially catastrophic for the integrity of the network! Upgrade your Besu client to version 22.7.1 immediately to avoid these issues. If upgrading isn't feasible, you can revert to version 22.1.3 or earlier as a workaround. Don't let your transactions go rogue! You've got this! Fixing it is straightforward and will help maintain the integrity of your network! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01053 · 64.1th percentile
Weaknesses
CWE-196 · Unsigned to Signed Conversion Error; CWE-681 · Incorrect Conversion between Numeric Types
Published
2022-09-24T02:00Z
EPSS history
Timeline
  • 24 SEP 02:00Z
    Incorrect Conversion between Numeric Types in Besu Ethereum Client
    cvelistv5