CVE-2022-35915

Uncontrolled Resource Consumption in npm/@openzeppelin/contracts

Identifiers

CVE-2022-35915, GHSA-7grf-83vw-6f5x

Package Slug

npm/@openzeppelin/contracts

Vulnerability

Uncontrolled Resource Consumption

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 Versions

All versions starting from 2.0.0 before 4.7.2

Solution

Upgrade to version 4.7.2 or above.

Last Modified

2022-08-10

source