{"id":"CVE-2022-35915","summary":"Unbounded gas consumption in @openzeppelin/contracts","details":"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.","aliases":["GHSA-7grf-83vw-6f5x"],"modified":"2026-08-12T03:51:34.173491848Z","published":"2022-08-01T21:05:11Z","database_specific":{"cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35915.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"\u003e=2.0.0 \u003c 4.7.2"},{"last_affected":"\u003e=2.0.0 \u003c 4.7.2"}]}],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35915.json"},{"type":"ADVISORY","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-7grf-83vw-6f5x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35915"},{"type":"FIX","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openzeppelin/openzeppelin-contracts","events":[{"introduced":"06e265b38d3e9daeaa7b33f9035c700d6bc0c6a0"},{"fixed":"64e48203cecad94f02de9891ecdeed4d629c6dae"},{"introduced":"1ada3b633e5bfd9d4ffe0207d64773a11f5a7c40"},{"fixed":"64e48203cecad94f02de9891ecdeed4d629c6dae"}],"database_specific":{"extracted_events":[{"introduced":"2.0.0"},{"fixed":"4.7.2"},{"introduced":"3.2.0"}],"source":"CPE_RANGE","cpe":["cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*","cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/openzeppelin/openzeppelin-contracts-upgradeable","events":[{"introduced":"40a9298585b20113c2afc5a2cb7edc5c8f2d656d"},{"fixed":"12ad9ea7c8e8e78f6eba9ad71ad156645d3c5b4c"}],"database_specific":{"extracted_events":[{"introduced":"3.2.0"},{"fixed":"4.7.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35915.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}