{"id":"GHSA-7grf-83vw-6f5x","summary":"OpenZeppelin Contracts ERC165Checker unbounded gas consumption","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).","aliases":["CVE-2022-35915"],"modified":"2023-11-08T04:09:52.370855Z","published":"2022-08-14T00:23:34Z","database_specific":{"nvd_published_at":"2022-08-01T21:15:00Z","cwe_ids":["CWE-400","CWE-770"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-08-14T00:23:34Z"},"references":[{"type":"WEB","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":"WEB","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"}],"affected":[{"package":{"name":"@openzeppelin/contracts","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/contracts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"4.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-7grf-83vw-6f5x/GHSA-7grf-83vw-6f5x.json"}},{"package":{"name":"openzeppelin-solidity","ecosystem":"npm","purl":"pkg:npm/openzeppelin-solidity"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"last_affected":"4.6.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-7grf-83vw-6f5x/GHSA-7grf-83vw-6f5x.json"}},{"package":{"name":"@openzeppelin/contracts-upgradeable","ecosystem":"npm","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.2.0"},{"fixed":"4.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-7grf-83vw-6f5x/GHSA-7grf-83vw-6f5x.json"}},{"package":{"name":"openzeppelin-eth","ecosystem":"npm","purl":"pkg:npm/openzeppelin-eth"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"last_affected":"2.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-7grf-83vw-6f5x/GHSA-7grf-83vw-6f5x.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"}]}