All reports
Medium

OpenZeppelin Contracts ERC165Checker unbounded gas consumption

Affected versions

Affected versions
>= 3.2.0, < 4.7.2
Fixed version
4.7.2
Affected versions
>= 2.0.0, < 4.7.2
Fixed version
4.7.2
Affected versions
>= 2.0.0, <= 2.2.0
Fixed version
Not reported
Affected versions
>= 2.0.0, <= 4.6.0
Fixed version
Not reported

Exploitation

CVE-2022-35915

Probability of exploitation in the next 30 days: 0.80%

FIRST EPSS · 2026-11-24

Description

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 security@openzeppelin.com.

Links