Skip to main content
← All vulnerabilities
CVE-2022-35915GHSA-7GRF-83VW-6F5X

Unbounded gas consumption in @openzeppelin/contracts

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.7.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • OpenZeppelin openzeppelin-contracts

    >=2.0.0 < 4.7.2

  • @openzeppelin/contractsnpm

    From 2.0.0 · fixed in 4.7.2

  • openzeppelin-soliditynpm

    From 2.0.0 · through 4.6.0

  • @openzeppelin/contracts-upgradeablenpm

    From 3.2.0 · fixed in 4.7.2

  • openzeppelin-ethnpm

    From 2.0.0 · through 2.2.0

References 2

GitHub · OpenZeppelin/openzeppelin-contracts