{"cve":"CVE-2022-35915","nvd":{"published":"2022-08-01T21:15:13.687","modified":"2026-06-17T04:52:30.757","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-770","CWE-400"],"references":["https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587","https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x","https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587","https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x"],"products":["openzeppelin:contracts","openzeppelin:contracts_upgradeable","openzeppelin:openzeppelin-eth","openzeppelin:openzeppelin-solidity"],"source":"nvd","synced_at":"2026-10-19T21:34:18.502168378+00:00"},"epss":{"cve":"CVE-2022-35915","score":0.00799,"percentile":0.56568,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7grf-83vw-6f5x","url":"https://osv.dev/vulnerability/GHSA-7grf-83vw-6f5x","summary":"OpenZeppelin Contracts ERC165Checker unbounded gas consumption","modified":"2023-11-08T04:09:52.370855Z","packages":[{"ecosystem":"npm","name":"@openzeppelin/contracts","purl":"pkg:npm/%40openzeppelin/contracts","ranges":[">=2.0.0 <4.7.2"],"fixed":["4.7.2"]},{"ecosystem":"npm","name":"openzeppelin-solidity","purl":"pkg:npm/openzeppelin-solidity","ranges":[">=2.0.0 <=4.6.0"],"fixed":[]},{"ecosystem":"npm","name":"@openzeppelin/contracts-upgradeable","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable","ranges":[">=3.2.0 <4.7.2"],"fixed":["4.7.2"]},{"ecosystem":"npm","name":"openzeppelin-eth","purl":"pkg:npm/openzeppelin-eth","ranges":[">=2.0.0 <=2.2.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}