CVE-2022-35915
Unbounded gas consumption in @openzeppelin/contracts
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Timeline
ID reserved
By GitHub_M
- 17 days later
· 17 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 0.80% · top 43% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Weakness
Affected products
OpenZeppelin · openzeppelin-contracts
- affected >=2.0.0 < 4.7.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npm@openzeppelin/contractsGHSA-7grf-83vw-6f5x (opens in a new tab)
- npm@openzeppelin/contracts-upgradeableGHSA-7grf-83vw-6f5x (opens in a new tab)
- npmopenzeppelin-ethGHSA-7grf-83vw-6f5x (opens in a new tab)
- npmopenzeppelin-solidityGHSA-7grf-83vw-6f5x (opens in a new tab)
References (2)
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7grf-83vw-6f5x (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-35915)Record last updated .