CVE-2021-41138
What it is
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`.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 1.4% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.4% in the next 30 days (EPSS).
- Severity: 5.3 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.4% · EPSS, next 30 days
- Weakness
- CWE-20 · Improper input validation
- Record status
- Modified
Affected
- Parity Frontier < 2021-10-13
Attack profile CVSS 3.1 · 5.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-41138.md and follow it. Check whether this project is affected by CVE-2021-41138. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
References
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf
- https://github.com/paritytech/frontier/commit/146bb48849e5393004be5c88beefe76fdf009aba
- https://github.com/paritytech/frontier/pull/497
- https://github.com/paritytech/frontier/security/advisories/GHSA-vj62-g63v-f8mf