EVM transfer accounting manipulation via integer truncation
Published Jul 6, 2022 · Updated Apr 23, 2025
Numeric truncation in Parity Technologies Frontier before commit fed5e0a allows remote attackers to alter EVM transfer accounting. In frame/evm/src/runner/stack.rs, the transfer path retained only the low 128 bits of a U256 value before converting it to the Substrate balance type instead of rejecting an out-of-range amount. An oversized EVM transfer can therefore present contracts with a value different from the amount transferred, while Substrate balance state and the node remain unaffected.
Summary
What happened
Numeric truncation in Parity Technologies Frontier before commit fed5e0a allows remote attackers to alter EVM transfer accounting. In frame/evm/src/runner/stack.rs, the transfer path retained only the low 128 bits of a U256 value before converting it to the Substrate balance type instead of rejecting an out-of-range amount. An oversized EVM transfer can therefore present contracts with a value different from the amount transferred, while Substrate balance state and the node remain unaffected.
The record
- CVE
- CVE-2022-31111
- Published
- Jul 6, 2022
- Updated
- Apr 23, 2025
- Vendor
- Parity Technologies
- Product
- Frontier
- Classifications
- CWE-670
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 6, 2022CVE publishedPublication date reported by the CVE source.
- Apr 23, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=commits prior to fed5e0a9577c10bea021721e8c2c5c378e16bf66
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo