5.3medium
Incorrect Calculation in Frontier leads to inflated Ethereum chain gas prices
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.78% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v57h-6hmh-g2p4
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| paritytech frontier | < commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658 | CVE List |
| pallet-ethereum (crates.io) | up to 3.0.0 | GitHub Advisory Database |
| parity frontier | before 2022-09-12 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Previously, 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. This issue is fixed by properly refund unused weights after each EVM execution.
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.
Patches
The issue is fixed in https://github.com/paritytech/frontier/pull/851
Workarounds
None.
References
Are there any links users can visit to find out more?
For more information
If you have any questions or comments about this advisory:
- Open an issue in Frontier repo
- Email Wei
NVD (es)
Frontier es una capa de compatibilidad con Ethereum para Substrate. En versiones anteriores al commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658, el peso del peor caso siempre era contabilizado como el peso del bloque para todos los casos. En el caso de grandes reembolsos de gas de EVM, esto puede conllevar ataques de spam de bloque - el adversario puede construir bloques con transacciones que presentan gran cantidad de reembolsos o gases no usados con reversiones, y como resultado inflar los precios de gas de la cadena. El impacto de este problema es limitado en el sentido de que el ataque de spamming seguiría siendo costoso para cualquier adversario, y no presenta capacidad para alterar ningún estado de la cadena. Este problema ha sido parcheado en el commit d3beddc6911a559a3ecc9b3f08e153dbe37a8658. No se presentan mitigaciones conocidas.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-39242 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v57h-6hmh-g2p4 changed 2024-10-24 | CC-BY-4.0 |
| NVD | CVE-2022-39242 changed 2026-06-17 | Public domain |