{"id":"CVE-2022-35915","aliases":["GHSA-7grf-83vw-6f5x"],"url":"https://o3.security/vulnerability/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.","published":"2022-08-01T21:05:11Z","modified":"2026-07-16T03:46:16.198403245Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@openzeppelin/contracts","fixedVersion":"4.7.2"},{"ecosystem":"npm","name":"openzeppelin-solidity","fixedVersion":null},{"ecosystem":"npm","name":"@openzeppelin/contracts-upgradeable","fixedVersion":"4.7.2"},{"ecosystem":"npm","name":"openzeppelin-eth","fixedVersion":null}],"fix":{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587","label":"OpenZeppelin/openzeppelin-contracts#3587"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-16T03:46:16.198403245Z"}}