Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. pallet-evm-precompile-modexp
  4. ›
  5. CVE-2022-21685

CVE-2022-21685: Integer underflow in Frontier

January 14, 2022 (updated October 24, 2024)

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. It is recommended that you apply the patch as soon as possible.

If you do not use MODEXP precompile in your runtime, then you are not impacted.

References

  • github.com/advisories/GHSA-cjg2-2fjg-fph4
  • github.com/paritytech/frontier
  • github.com/paritytech/frontier/commit/8a93fdc6c9f4eb1d2f2a11b7ff1d12d70bf5a664
  • github.com/paritytech/frontier/pull/549
  • github.com/paritytech/frontier/security/advisories/GHSA-cjg2-2fjg-fph4
  • nvd.nist.gov/vuln/detail/CVE-2022-21685

Code Behaviors & Features

Detect and mitigate CVE-2022-21685 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-191: Integer Underflow (Wrap or Wraparound)

Source file

cargo/pallet-evm-precompile-modexp/CVE-2022-21685.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.