CVE-2022-35915 Unbounded gas consumption in @openzeppelin/contracts
MediumCVSS 5.3
EPSS 0.80%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
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.
Upgrade path
9 packages: 6 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openzeppelin-eth | >= 2.0.0 | No fix listed | No fix yet |
| openzeppelin-solidity | >= 2.0.0 | No fix listed | No fix yet |
| npm openzeppelin-eth(npm) | >= 2.0.0, <= 2.2.0 | after 2.2.0 | Fixed |
| npm openzeppelin-solidity(npm) | >= 2.0.0, <= 4.6.0 | after 4.6.0 | Fixed |
| openzeppelin @openzeppelin/contracts | >= 2.0.0, < 4.7.2 | 4.7.2 | Fixed |
| openzeppelin @openzeppelin/contracts(npm) | >= 2.0.0, < 4.7.2 | 4.7.2 | Fixed |
| openzeppelin @openzeppelin/contracts-upgradeable(npm) | >= 3.2.0, < 4.7.2 | 4.7.2 | Fixed |
| openzeppelin contracts upgradeable | >= 3.2.0, < 4.7.2 | 4.7.2 | Fixed |
| openzeppelin-contracts | = >=2.0.0 < 4.7.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openzeppelin @openzeppelin/contracts(npm) | >= 2.0.0, < 4.7.2 | 4.7.2 |
| npm openzeppelin-solidity(npm) | >= 2.0.0, <= 4.6.0 | No fix listed |
| openzeppelin @openzeppelin/contracts-upgradeable(npm) | >= 3.2.0, < 4.7.2 | 4.7.2 |
| npm openzeppelin-eth(npm) | >= 2.0.0, <= 2.2.0 | No fix listed |
| openzeppelin-contracts | = >=2.0.0 < 4.7.2 | No fix listed |
| openzeppelin @openzeppelin/contracts | >= 2.0.0, < 4.7.2 | 4.7.2 |
| openzeppelin contracts upgradeable | >= 3.2.0, < 4.7.2 | 4.7.2 |
| openzeppelin-eth | >= 2.0.0 | No fix listed |
| openzeppelin-solidity | >= 2.0.0 | No fix listed |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com
- github.com
- github.com product