{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21685","published":"2022-01-14T17:15:13.333000Z","last_modified":"2026-06-17T04:26:45.607000Z","status":"Modified","cvss":{"version":"3.1","score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-191"],"cpes":[{"criteria":"cpe:2.3:a:parity:frontier:*:*:*:*:*:*:*:*","part":"a","vendor":"parity","product":"frontier","version_end_including":"2022-01-13"}],"cpes_truncated":false,"vendors":["parity"],"products":["parity/frontier"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01364,"percentile":0.71981,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-cjg2-2fjg-fph4","ecosystem":"crates.io","name":"pallet-evm-precompile-modexp","purl":"pkg:cargo/pallet-evm-precompile-modexp","ranges":[{"introduced":"0","last_affected":"1.0.0"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":39,"links":{"html_es":"/es/cve/CVE-2022-21685/","html_en":"/en/cve/CVE-2022-21685/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21685","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21685"},"untrusted":{"vendor_name":"Parity","product_name":"Frontier","desc_en":"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.","affected":[{"untrusted_vendor":"paritytech","untrusted_product":"frontier","versions":[]}],"references":[{"url":"https://github.com/paritytech/frontier/commit/8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/paritytech/frontier/pull/549","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/paritytech/frontier/security/advisories/GHSA-cjg2-2fjg-fph4","tags":["Patch","Third Party Advisory"]}]}}