CVE-2022-35915: Openzeppelin Contracts
Medium severity, CVSS 5.3. EPSS: 0.8% chance of exploitation in the next 30 days.
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 products
- Openzeppelin Contracts: from 2.0.0, before 4.7.2 (fixed in 4.7.2)
- Openzeppelin Contracts Upgradeable: from 3.2.0, before 4.7.2 (fixed in 4.7.2)
- Openzeppelin Openzeppelin-Eth: from 2.0.0
- Openzeppelin Openzeppelin-Solidity: from 2.0.0
Published 2022-08-01. Last modified 2026-06-17.