5.3medium
Validity check for signed Frontier-specific extrinsic not called in block execution
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.38% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vj62-g63v-f8mf
Description
Frontier is Substrate's Ethereum compatibility layer. In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. The issue is patched in commit `146bb48849e5393004be5c88beefe76fdf009aba`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| paritytech frontier | < 146bb48 | CVE List |
| pallet-ethereum (crates.io) | up to 3.0.0 | GitHub Advisory Database |
| parity frontier | from 2021-09-30 before 2021-10-13 | 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:L/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
Frontier is Substrate's Ethereum compatibility layer. In the newly introduced signed Frontier-specific extrinsic for `pallet-ethereum`, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block. The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent `pallet-evm` execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors. The issue is patched in commit `146bb48849e5393004be5c88beefe76fdf009aba`.
GitHub Advisory Database
Impact
In the newly introduced signed Frontier-specific extrinsic for pallet-ethereum, a large part of transaction validation logic was only called in transaction pool validation, but not in block execution. Malicious validators can take advantage of this to put invalid transactions into a block.
The attack is limited in that the signature is always validated, and the majority of the validation is done again in the subsequent pallet-evm execution logic. However, do note that a chain ID replay attack was possible. In addition, spamming attacks are of main concerns, while they are limited by Substrate block size limits and other factors.
Patches
The issue is patched in commit 146bb48849e5393004be5c88beefe76fdf009aba.
References
Patch PR: https://github.com/paritytech/frontier/pull/495
For more information
If you have any questions or comments about this advisory:
- Open an issue in Frontier repo
Special thanks
Special thanks to @librelois, @nanocryk and the Moonbeam team for reporting and fixing this security vulnerability.
NVD (es)
Frontier es la capa de compatibilidad con Ethereum de Substrate. En la recién introducida extrínseca específica de Frontier para "pallet-ethereum", una gran parte de la lógica de comprobación de transacciones sólo se llamaba en la comprobación del conjunto de transacciones, pero no en la ejecución del bloque. Los comprobadores maliciosos pueden aprovechar esto para poner transacciones no válidas en un bloque. El ataque está limitado en el sentido de que la firma siempre es validada, y la mayor parte de la comprobación es realizada de nuevo en la lógica de ejecución posterior de "pallet-evm". Sin embargo, es debido tener en cuenta que es posible un ataque de repetición de ID de cadena. Además, los ataques de spam son de las principales preocupaciones, mientras que están limitados por los límites de tamaño de bloque del sustrato y otros factores. El problema está parcheado en el commit "146bb48849e5393004be5c88beefe76fdf009aba"
References
| https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf | patch, third-party-advisory, web | |
| https://github.com/paritytech/frontier/pull/497 | patch, third-party-advisory, web | |
| https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41138 | advisory | |
| https://github.com/paritytech/frontier/pull/495 | web | |
| https://github.com/polkadot-evm/frontier | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41138 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vj62-g63v-f8mf changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41138 changed 2026-06-17 | Public domain |