CVE-2022-39242
published medium CVSS 3.1 · 5.3Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| paritytech | — | frontier< commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| paritytech | frontier | < commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-682 CWE-682: Incorrect Calculation
References
2Provider assertions
3GitHub_M · cna
Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 36fd5482c0513e9eb4e3dba01ac504b6e05fa10f30dcc3b846ba67dcda6e613d
- Ingested
- 23 Sep 2026, 08:02:02 UTC
- Source record
- Official CVE record