GHSA-cjg2-2fjg-fph4

Suggest an improvement
Source
https://github.com/advisories/GHSA-cjg2-2fjg-fph4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-cjg2-2fjg-fph4/GHSA-cjg2-2fjg-fph4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cjg2-2fjg-fph4
Aliases
Published
2022-01-14T21:03:36Z
Modified
2024-10-24T21:50:43Z
Summary
Integer underflow in Frontier
Details

Impact

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.

Patches

Patches are applied in PR #549.

Workarounds

None.

References

Patch PR: #549

Credits

Thanks to SR-Labs for discovering the security vulnerability, and thanks to PureStake team for the patches.

For more information

If you have any questions or comments about this advisory: * Open an issue in the Frontier repo

Database specific
{
    "nvd_published_at": "2022-01-14T17:15:00Z",
    "cwe_ids": [
        "CWE-191"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-01-14T19:58:51Z"
}
References

Affected packages

crates.io / pallet-evm-precompile-modexp

Package

Name
pallet-evm-precompile-modexp
View open source insights on deps.dev
Purl
pkg:cargo/pallet-evm-precompile-modexp

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.0.0