CVE-2022-31111 Discrepency in transfer value and actual value due to incorrect truncation in Frontier
Incorrect truncation in Frontier causes discrepancies between displayed and actual transferred values, requiring an upgrade to fix.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-31111?
CVE-2022-31111 is a medium-severity vulnerability in paritytech frontier, published on 6 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Frontier is Substrate's Ethereum compatibility layer. In affected versions the truncation done when converting between EVM balance type and Substrate balance type was incorrectly implemented. This leads to possible discrepancy between appeared EVM transfer value and actual Substrate value transferred. It is recommended that an emergency upgrade to be planned and EVM execution temporarily paused in the mean time. The issue is patched in Frontier master branch commit fed5e0a9577c10bea021721e8c2c5c378e16bf66 and polkadot-v0.9.22 branch commit e3e427fa2e5d1200a784679f8015d4774cedc934. This vulnerability affects only EVM internal states, but not Substrate balance states or node. You can temporarily pause EVM execution (by setting up a Substrate `CallFilter` that disables `pallet-evm` and `pallet-ethereum` calls before the patch can be applied.
Weakness: CWE-670
Which versions are affected by CVE-2022-31111?
It affects 1 product.
Products include Parity Frontier.
How do I fix CVE-2022-31111?
No fix has been published for CVE-2022-31111 yet. Limit exposure of the affected software until one is available.
Is CVE-2022-31111 being exploited?
There is no known exploitation of CVE-2022-31111 in the wild and no public exploit code.
Other vulnerabilities in paritytech frontier
- CVE-2023-45130 Frontier opcode SUICIDE touches too many storage values on large contracts
- CVE-2023-28431 Frontier's modexp precompile is slow for even modulus
- CVE-2022-36008 Message length overflow in frontier
- CVE-2022-21685 Integer underflow in Frontier
- CVE-2022-39242 Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
Sources
Also known as GHSA-hc8w-mx86-9fcj.