CVE-2022-35915

Unbounded gas consumption in @openzeppelin/contracts

MEDIUM
5.3
CVSS Score
Published: August 1, 2022 at 09:05 PM UTC
Updated: June 17, 2026 at 04:52 AM UTC
5 products affected across 1 vendorContractsContracts UpgradeableOpenzeppelin Solidity

Using openzeppelin-contracts by OpenZeppelin?

Get instant alerts when new vulnerabilities affect openzeppelin-contracts - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.0.0 ≤ v < 4.7.2
Affected range stops below 4.7.2, so it looks safe — our inference, not a vendor statement
3.2.0 ≤ v < 4.7.2
Affected range stops below 4.7.2, so it looks safe — our inference, not a vendor statement
v < 4.7.2
Affected range stops below 4.7.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-400CWE-770

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card