CVE-2022-35915 json
Unbounded gas consumption in @openzeppelin/contracts
published 2022-08-01 4 y ago modified 2026-06-17 4 mo ago also GHSA-7grf-83vw-6f5x , EUVD-2022-6503
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
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.
Patch / fix
- npm @openzeppelin/contracts 4.7.2
- npm @openzeppelin/contracts-upgradeable 4.7.2
- openzeppelin contracts 4.7.2
- openzeppelin contracts_upgradeable 4.7.2
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.80% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @openzeppelin/contracts | >=2.0.0, <4.7.2 |
4.7.2 |
| npm | openzeppelin-solidity | >=2.0.0, <=4.6.0 |
no fix listed |
| npm | @openzeppelin/contracts-upgradeable | >=3.2.0, <4.7.2 |
4.7.2 |
| npm | openzeppelin-eth | >=2.0.0, <=2.2.0 |
no fix listed |
Affected products
- OpenZeppelin openzeppelin-contracts
Classification
References
-
github.com
/OpenZeppelin/openzeppelin-contracts/pull/3587
web, patch, third-party-advisory
-
github.com
/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-35915
advisory
-
github.com
/OpenZeppelin/openzeppelin-contracts
package
-
github.com
/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.2
web
Sources
- CVE List CVE-2022-35915
- GitHub Advisory GHSA-7grf-83vw-6f5x
- NVD CVE-2022-35915
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.