CVE-2022-21685: parity frontier Integer Underflow (Wrap or Wraparound)
Vulnerability summary
CVE-2022-21685 is a medium (CVSS 6.5) Integer Underflow (Wrap or Wraparound) vulnerability in parity frontier. EPSS estimates a 1.33% chance of exploitation in the next 30 days, higher than 70.8% of scored vulnerabilities.
Timeline
- 14-01-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
Frontier is Substrate's Ethereum compatibility layer. Prior to commit number `8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664`, a bug in Frontier's MODEXP precompile implementation can cause an integer underflow in certain conditions. This will cause a node crash for debug builds. For release builds (and production WebAssembly binaries), the impact is limited as it can only cause a normal EVM out-of-gas. Users who do not use MODEXP precompile in their runtime are not impacted. A patch is available in pull request #549.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.33%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
0.00 pp
From 1.33% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Crates.Io1 product
- pallet-evm-precompile-modexp≤ 1.0.0
Parity1 product
- frontier≤ 2022-01-13
Paritytech1 product
- frontier< 8a93fdc
3 vendors · 3 products
References
5 links- github.com/paritytech/frontier/security/advisories/GHSA-cjg2-2fjg-fph4X Refsource CONFIRMWEBPatchThird Party Advisory
- github.com/paritytech/frontier/commit/8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664X Refsource MISCWEBPatchThird Party Advisory