Vulnerability Details : CVE-2022-21685
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.
Products affected by CVE-2022-21685
- cpe:2.3:a:parity:frontier:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21685
0.10%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 40 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21685
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.0
|
MEDIUM | AV:N/AC:L/Au:S/C:N/I:N/A:P |
8.0
|
2.9
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
2.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2022-21685
-
The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2022-21685
-
https://github.com/paritytech/frontier/pull/549
Handle 0 exponent with fudged length correctly in ModExp by notlesh · Pull Request #549 · paritytech/frontier · GitHubPatch;Third Party Advisory
-
https://github.com/paritytech/frontier/commit/8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664
Handle 0 exponent with fudged length correctly in ModExp (#549) · paritytech/frontier@8a93fdc · GitHubPatch;Third Party Advisory
-
https://github.com/paritytech/frontier/security/advisories/GHSA-cjg2-2fjg-fph4
Integer underflow in the MODEXP precompile · Advisory · paritytech/frontier · GitHubPatch;Third Party Advisory
Jump to