Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @openzeppelin/contracts-upgradeable
  4. ›
  5. CVE-2022-35915

CVE-2022-35915: Uncontrolled Resource Consumption

August 14, 2022

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.

References

  • github.com/OpenZeppelin/openzeppelin-contracts/pull/3587
  • github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.2
  • github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x
  • github.com/advisories/GHSA-7grf-83vw-6f5x
  • nvd.nist.gov/vuln/detail/CVE-2022-35915

Code Behaviors & Features

Detect and mitigate CVE-2022-35915 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.2.0 before 4.7.2

Fixed versions

  • 4.7.2

Solution

Upgrade to version 4.7.2 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/@openzeppelin/contracts-upgradeable/CVE-2022-35915.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:00 +0000.