5.3
MEDIUM CVSS 3.1
CVE-2022-31111
Discrepency in transfer value and actual value due to incorrect truncation in Frontier
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 :

Nov. 21, 2024, 7:03 a.m.

Remotely Exploit :

Yes !
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
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
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.

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
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
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.

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, 2 weeks ago
496 stars 43 fork 43 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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/paritytech/frontier/commit/e3e427fa2e5d1200a784679f8015d4774cedc934
    Added Reference https://github.com/paritytech/frontier/commit/fed5e0a9577c10bea021721e8c2c5c378e16bf66
    Added Reference https://github.com/paritytech/frontier/pull/753
    Added Reference https://github.com/paritytech/frontier/security/advisories/GHSA-hc8w-mx86-9fcj
  • 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.
Vulnerability Scoring Details
Base CVSS Score: 5.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

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

0.42 }} -0.00%

score

0.61046

percentile