Advisory

GHSA-7grf-83vw-6f5x

Also known as: CVE-2022-35915

Summary

OpenZeppelin Contracts ERC165Checker unbounded gas consumption

Details

Impact

The target contract of an EIP-165 supportsInterface query can cause unbounded gas consumption by returning a lot of data, while it is generally assumed that this operation has a bounded cost.

Patches

The issue has been fixed in v4.7.2.

References

https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587

For more information

If you have any questions or comments about this advisory, or need assistance deploying a fix, email us at [[email protected]](mailto:[email protected]).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-08-14 00:23 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

@openzeppelin/contracts

npm · All systems

Affected

  • introduced 2.0.0, fixed 4.7.2 (semver)

Fixed versions

4.7.2

Fix

openzeppelin-solidity

npm · All systems

Affected

  • introduced 2.0.0, last affected 4.6.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

@openzeppelin/contracts-upgradeable

npm · All systems

Affected

  • introduced 3.2.0, fixed 4.7.2 (semver)

Fixed versions

4.7.2

Fix

openzeppelin-eth

npm · All systems

Affected

  • introduced 2.0.0, last affected 2.2.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences