CVE-2022-36008:
Incorrect parsing of EVM reversion exit reason in RPC
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.27438%
CWE
Published
8/18/2022
Updated
10/24/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
fc-rpc | rust | <= 1.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was explicitly patched in the error_on_execution_failure function's handling of ExitReason::Revert. The original code used data[36..68].iter().sum::<u8>() to calculate message length, which is both semantically incorrect (length is a U256, not a sum of bytes) and vulnerable to integer overflow. The patch replaced this with proper U256 parsing and saturation, confirming the vulnerable code path.