# CVE-2022-39242: Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2022-09-23T22:07:10.000Z
- Modified: 2026-06-17T04:57:58.927Z
- Also known as: GHSA-v57h-6hmh-g2p4
- Weaknesses: CWE-682
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- paritytech frontier: < commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658
- pallet-ethereum (crates.io): up to 3.0.0
- parity frontier: before 2022-09-12

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/paritytech/frontier/security/advisories/GHSA-v57h-6hmh-g2p4> (third-party-advisory, web)
- <https://github.com/paritytech/frontier/pull/851> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39242> (advisory)
- <https://github.com/paritytech/frontier> (package)

## Sources

- CVE List: [CVE-2022-39242](https://www.cve.org/CVERecord?id=CVE-2022-39242), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-v57h-6hmh-g2p4](https://github.com/advisories/GHSA-v57h-6hmh-g2p4), CC-BY-4.0, modified 2024-10-24
- NVD: [CVE-2022-39242](https://nvd.nist.gov/vuln/detail/CVE-2022-39242), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39242 · Whole record: https://cve.day/CVE-2022-39242.json · Rebuilt by cve.day 2026-11-25T22:58:15.285Z
