CVEvulnerability

CVE-2022-35915

5.3 MEDIUM Published 2022-08-01 Modified 2026-06-17 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

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References