Medium severity5.3NVD Advisory· Published Aug 1, 2022· Updated Jun 17, 2026
CVE-2022-35915
CVE-2022-35915
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@openzeppelin/contractsnpm | >= 2.0.0, < 4.7.2 | 4.7.2 |
openzeppelin-soliditynpm | >= 2.0.0, <= 4.6.0 | — |
@openzeppelin/contracts-upgradeablenpm | >= 3.2.0, < 4.7.2 | 4.7.2 |
openzeppelin-ethnpm | >= 2.0.0, <= 2.2.0 | — |
Affected products
9- ghsa-coords4 versionspkg:npm/%40openzeppelin/contractspkg:npm/openzeppelin-soliditypkg:npm/%40openzeppelin/contracts-upgradeablepkg:npm/openzeppelin-eth
>= 2.0.0, < 4.7.2+ 3 more
- (no CPE)range: >= 2.0.0, < 4.7.2
- (no CPE)range: >= 2.0.0, <= 4.6.0
- (no CPE)range: >= 3.2.0, < 4.7.2
- (no CPE)range: >= 2.0.0, <= 2.2.0
cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*+ 1 more
- cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*range: >=2.0.0,<4.7.2
- (no CPE)range: >=2.0.0 < 4.7.2
- cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*Range: >=3.2.0,<4.7.2
- cpe:2.3:a:openzeppelin:openzeppelin-eth:*:*:*:*:*:node.js:*:*Range: >=2.0.0
- cpe:2.3:a:openzeppelin:openzeppelin-solidity:*:*:*:*:*:node.js:*:*Range: >=2.0.0
Patches
Vulnerability mechanics
References
5- github.com/OpenZeppelin/openzeppelin-contracts/pull/3587nvdPatchThird Party AdvisoryWEB
- github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5xnvdThird Party AdvisoryWEB
- github.com/advisories/GHSA-7grf-83vw-6f5xghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-35915ghsaADVISORY
- github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.2ghsaWEB
News mentions
0No linked articles in our index yet.