CVE-2022-35915

Unbounded gas consumption in @openzeppelin/contracts

Published Aug 1, 2022 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6503 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.
Github GHSA Github GHSA GHSA-7grf-83vw-6f5x OpenZeppelin Contracts ERC165Checker unbounded gas consumption
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 23, 2025, 5:54 PM
Reserved
Jul 15, 2022, 12:00 AM
Status
Modified
Published
Aug 1, 2022, 9:15 PM
Modified
Jun 17, 2026, 4:52 AM