CVE-2022-39242 json
Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
published 2022-09-23 4 y ago modified 2026-06-17 4 mo ago also GHSA-v57h-6hmh-g2p4 , EUVD-2022-6940
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
Summary
Frontier is an Ethereum compatibility layer for Substrate. Prior to commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658, the worst case weight was always accounted as the block weight for all cases. In case of large EVM gas refunds, this can lead to block spamming attacks -- the adversary can construct blocks with transactions that have large amount of refunds or unused gases with reverts, and as a result inflate up the chain gas prices. The impact of this issue is limited in that the spamming attack would still be costly for any adversary, and it has no ability to alter any chain state. This issue has been patched in commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658. There are no known workarounds.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | pallet-ethereum | <=3.0.0 |
no fix listed |
Affected products
- paritytech frontier
Classification
- Weakness
-
- CWE-682 Incorrect Calculation
References
-
github.com
/paritytech/frontier/pull/851
web, patch, third-party-advisory
-
github.com
/paritytech/frontier/security/advisories/GHSA-v57h-6hmh-g2p4
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39242
advisory
-
github.com
/paritytech/frontier
package
Sources
- CVE List CVE-2022-39242
- GitHub Advisory GHSA-v57h-6hmh-g2p4
- NVD CVE-2022-39242
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.