Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| paritytech | frontier | < commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658 | — | No fix listed | CNA |
| — | pallet-ethereum (crates.io) | up to 3.0.0 | — | No fix listed | GHSA-v57h-6hmh-g2p4 |
- frontier Vendorparitytech Affected < commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658 Fixed in — No fix listed CNA
- pallet-ethereum (crates.io) Vendor— Affected up to 3.0.0 Fixed in — No fix listed GHSA-v57h-6hmh-g2p4
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:parity:frontier:*:*:*:*:*:*:*:* | before 2022-09-12 | Vulnerable | paritytech |
- cpe:2.3:a:parity:frontier:*:*:*:*:*:*:*:* Versions before 2022-09-12 Vulnerable ·paritytech
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39242
- 2026-10-03 Alias added: GHSA-v57h-6hmh-g2p4
References
More paritytech Frontier vulnerabilities
- TI-2023-24151 Frontier opcode SUICIDE touches too many storage values on large contracts CVSS 3.1HIGH 7.5
- TI-2023-12975 Frontier's modexp precompile is slow for even modulus CVSS 3.1HIGH 7.5
- TI-2022-16433 Message length overflow in frontier CVSS 3.1HIGH 7.1
- TI-2022-13155 Discrepency in transfer value and actual value due to incorrect truncation in Frontier CVSS 3.1MEDIUM 5.3
- TI-2022-06061 Integer underflow in Frontier CVSS 3.1MEDIUM 6.5
- TI-2021-17977 Validity check for signed Frontier-specific extrinsic not called in block execution CVSS 3.1MEDIUM 5.3
Sources
- CVE-2022-39242 · CVE Program
- CVE-2022-39242 · NVD
- FIRST EPSS
- GHSA-v57h-6hmh-g2p4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences