CVE-2022-31111

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-31111
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-31111.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-31111
Related
  • GHSA-hc8w-mx86-9fcj
Published
2022-07-06T18:15:19Z
Modified
2025-01-15T02:22:08.619967Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/polkadot-evm/frontier

Affected ranges

Type
GIT
Repo
https://github.com/polkadot-evm/frontier
Events

Affected versions

fc-consensus-v1.*

fc-consensus-v1.0.0

fc-consensus-v2.*

fc-consensus-v2.0.0

fc-db-v1.*

fc-db-v1.0.0

fc-mapping-sync-v1.*

fc-mapping-sync-v1.0.0

fc-rpc-core-v1.*

fc-rpc-core-v1.0.0

fc-rpc-v1.*

fc-rpc-v1.0.0

fp-consensus-v1.*

fp-consensus-v1.0.0

fp-evm-v1.*

fp-evm-v1.0.0

fp-evm-v2.*

fp-evm-v2.0.0

fp-rpc-v1.*

fp-rpc-v1.0.0

fp-rpc-v2.*

fp-rpc-v2.0.0
fp-rpc-v2.1.0

fp-storage-v1.*

fp-storage-v1.0.0
fp-storage-v1.0.1

fp-storage-v2.*

fp-storage-v2.0.0

pallet-dynamic-fee-v1.*

pallet-dynamic-fee-v1.0.0

pallet-dynamic-fee-v2.*

pallet-dynamic-fee-v2.0.0

pallet-dynamic-fee-v3.*

pallet-dynamic-fee-v3.0.0

pallet-ethereum-v1.*

pallet-ethereum-v1.0.0

pallet-ethereum-v2.*

pallet-ethereum-v2.0.0

pallet-ethereum-v3.*

pallet-ethereum-v3.0.0

pallet-evm-precompile-blake2-v1.*

pallet-evm-precompile-blake2-v1.0.0

pallet-evm-precompile-bn128-v1.*

pallet-evm-precompile-bn128-v1.0.0

pallet-evm-precompile-dispatch-v1.*

pallet-evm-precompile-dispatch-v1.0.0

pallet-evm-precompile-ed25519-v1.*

pallet-evm-precompile-ed25519-v1.0.0

pallet-evm-precompile-modexp-v1.*

pallet-evm-precompile-modexp-v1.0.0

pallet-evm-precompile-sha3fips-v1.*

pallet-evm-precompile-sha3fips-v1.0.0

pallet-evm-precompile-simple-v1.*

pallet-evm-precompile-simple-v1.0.0

pallet-evm-v3.*

pallet-evm-v3.0.0

pallet-evm-v4.*

pallet-evm-v4.0.0

pallet-evm-v5.*

pallet-evm-v5.0.0