5.3
MEDIUM
CVE-2022-31111
Frontier Ethereum EVM Balance Truncation Vulnerability
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.

INFO

Published Date :

July 6, 2022, 6:15 p.m.

Last Modified :

July 14, 2022, 2:18 p.m.

Remotely Exploitable :

Yes !

Impact Score :

1.4

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2022-31111 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2022-31111 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Parity frontier
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-31111.

URL Resource
https://github.com/paritytech/frontier/commit/e3e427fa2e5d1200a784679f8015d4774cedc934 Patch Third Party Advisory
https://github.com/paritytech/frontier/commit/fed5e0a9577c10bea021721e8c2c5c378e16bf66 Patch Third Party Advisory
https://github.com/paritytech/frontier/pull/753 Issue Tracking Patch Third Party Advisory
https://github.com/paritytech/frontier/security/advisories/GHSA-hc8w-mx86-9fcj Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Smart Contract Vulnerabilities (SCV) List

security solidity blockchain cryptocurrency

Updated: 1 month ago
460 stars 36 fork 36 watcher
Born at : Feb. 1, 2022, 3:58 a.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-31111 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-31111 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jul. 14, 2022

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
    Changed Reference Type https://github.com/paritytech/frontier/commit/e3e427fa2e5d1200a784679f8015d4774cedc934 No Types Assigned https://github.com/paritytech/frontier/commit/e3e427fa2e5d1200a784679f8015d4774cedc934 Patch, Third Party Advisory
    Changed Reference Type https://github.com/paritytech/frontier/commit/fed5e0a9577c10bea021721e8c2c5c378e16bf66 No Types Assigned https://github.com/paritytech/frontier/commit/fed5e0a9577c10bea021721e8c2c5c378e16bf66 Patch, Third Party Advisory
    Changed Reference Type https://github.com/paritytech/frontier/pull/753 No Types Assigned https://github.com/paritytech/frontier/pull/753 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://github.com/paritytech/frontier/security/advisories/GHSA-hc8w-mx86-9fcj No Types Assigned https://github.com/paritytech/frontier/security/advisories/GHSA-hc8w-mx86-9fcj Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:parity:frontier:-:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-31111 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-31111 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.10 }} 0.00%

score

0.40950

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability