Unbounded gas consumption in @openzeppelin/contracts (OpenZeppelin openzeppelin-contracts)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.80 % Β· percentile 57 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-400 β Uncontrolled Resource Consumption
- CWE-770 β Allocation of Resources Without Limits or Throttling
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | GitHub_M |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD Β· security-advisories@github.com (Secondary) |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-7grf-83vw-6f5x β OpenZeppelin Contracts ERC165Checker unbounded gas consumption
European references
- ENISA EUVD Β· EUVD-2022-6503
- GCVE Β· GCVE-0-2022-35915
Affected configurations (NVD CPE)
cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*β₯ 2.0.0 < 4.7.2cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*β₯ 3.2.0 < 4.7.2cpe:2.3:a:openzeppelin:openzeppelin-eth:*:*:*:*:*:node.js:*:*β₯ 2.0.0cpe:2.3:a:openzeppelin:openzeppelin-solidity:*:*:*:*:*:node.js:*:*β₯ 2.0.0
Affected products
| Product | Versions |
|---|---|
| OpenZeppelin Β· openzeppelin-contracts | affected >=2.0.0 < 4.7.2 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |