CVE-2022-31111 Discrepency in transfer value and actual value due to incorrect truncation in Frontier

Medium 5.3 Published Updated

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.

Sources

Also known as GHSA-hc8w-mx86-9fcj.

Is CVE-2022-31111 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free