CVE-2022-39242
MEDIUM 5.3CVSS 3.1Weight not properly refunded after EVM execution
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.
- Published
- 24 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-682
- Also known as
- GHSA-v57h-6hmh-g2p4
- Sources
- NVDJSONOSV GHSA-v57h-6hmh-g2p4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parity | frontiercpe:2.3:a:parity:frontier:*:*:*:*:*:*:*:* |
< 2022-09-12 | 2022-09-12 |
| OSV | crates.io | pallet-ethereum | <= 3.0.0 |
References
- https://github.com/paritytech/frontier/pull/851 · Patch, Third Party Advisory, WEB
- https://github.com/paritytech/frontier/security/advisories/GHSA-v57h-6hmh-g2p4 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39242 · ADVISORY
- https://github.com/paritytech/frontier · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 24 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 23 Sep 2022)