CVE-2021-41138 Validity check for signed Frontier-specific extrinsic not called in block execution
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io pallet-ethereum(crates.io) | <= 3.0.0 | after 3.0.0 | Fixed |
| parity frontier | >= 2021-09-30, < 2021-10-13 | 2021-10-13 | Fixed |
| paritytech frontier | = < 146bb48 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io pallet-ethereum(crates.io) | <= 3.0.0 | No fix listed |
| parity frontier | >= 2021-09-30, < 2021-10-13 | 2021-10-13 |
| paritytech frontier | = < 146bb48 | No fix listed |
References
- github.com patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch third-party-advisory
- github.com patch third-party-advisory
- github.com product
- github.com