CVEvulnerability
CVE-2022-35915
5.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2022-08-01
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-400, CWE-770
Description
OpenZeppelin Contracts is a library for secure smart contract development. 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. The issue has been fixed in v4.7.2. Users are advised to upgrade. There are no known workarounds for this issue.
Affected configurations
• openzeppelin contracts (>= 2.0.0 < 4.7.2)
• openzeppelin contracts upgradeable (>= 3.2.0 < 4.7.2)
• openzeppelin openzeppelin-eth (>= 2.0.0)
• openzeppelin openzeppelin-solidity (>= 2.0.0)
Related
References
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587 Patch, Third Party Advisory
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x Third Party Advisory
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587 Patch, Third Party Advisory
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x Third Party Advisory