CVE-2022-31111: medium-severity vulnerability in paritytech frontier
Discrepency in transfer value and actual value due to incorrect truncation in Frontier
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 5.3epss 1.4%
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected products
paritytech · frontierRelated CVEs — paritytech frontier
In the same product, most dangerous first.
CVE-2021-41138MEDIUMValidity check for signed Frontier-specific extrinsic not called in block executionEPSS 1.4%CVE-2022-21685MEDIUMInteger underflow in FrontierEPSS 1.4%CVE-2022-36008HIGHMessage length overflow in frontierEPSS 1.3%CVE-2021-39193MEDIUMTransaction validity oversight in pallet-ethereumEPSS 1.2%CVE-2023-45130HIGHFrontier opcode SUICIDE touches too many storage values on large contractsEPSS 1.0%CVE-2023-28431HIGHFrontier's modexp precompile is slow for even modulusEPSS 0.9%
References
https://github.com/paritytech/frontier/commit/e3e427fa2e5d1200a784679f8015d4774cedc934https://github.com/paritytech/frontier/commit/fed5e0a9577c10bea021721e8c2c5c378e16bf66https://github.com/paritytech/frontier/pull/753https://github.com/paritytech/frontier/security/advisories/GHSA-hc8w-mx86-9fcj