{"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":"### Impact\n\nThe 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.\n\n### Patches\n\nThe issue has been fixed in v4.7.2.\n\n### References\n\nhttps://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587\n\n### For more information\n\nIf you have any questions or comments about this advisory, or need assistance deploying a fix, email us at [security@openzeppelin.com](mailto:security@openzeppelin.com).","published":"2022-08-01T21:05:11Z","modified":"2026-08-12T03:51:34.173491848Z","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"},{"type":"PACKAGE","url":"https://github.com/OpenZeppelin/openzeppelin-contracts"},{"type":"WEB","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.7.2"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:34.173491848Z"}}