CVE-2022-39242

Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.05%
Third-Party Advisory github.com Third-Party Advisory github.com
Affected: paritytech frontier
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-39242?
CVE-2022-39242 has been scored as a medium severity vulnerability.
How to fix CVE-2022-39242?
To fix CVE-2022-39242, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-39242 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-39242 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-39242?
CVE-2022-39242 affects paritytech frontier.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.