CVE-2022-35915: Unbounded gas consumption in @openzeppelin/contracts
Impact
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.
Patches
The issue has been fixed in v4.7.2.
References
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587
For more information
If you have any questions or comments about this advisory, or need assistance deploying a fix, email us at security@openzeppelin.com.
Other sources
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the impact of CVE-2022-35915?
The target contract of an EIP-165 supportsInterface query can cause unbounded gas consumption by returning a lot of data.
Which versions of OpenZeppelin Contracts are affected by CVE-2022-35915?
OpenZeppelin Contracts versions 2.0.0 to 4.7.2 are affected.
How can I fix CVE-2022-35915 in my OpenZeppelin Contracts library?
Upgrade to version 4.7.2 of OpenZeppelin Contracts.
Where can I find more information about CVE-2022-35915?
You can find more information about CVE-2022-35915 in the OpenZeppelin Contracts security advisory or the NVD.
What is the severity rating of CVE-2022-35915?
The severity rating of CVE-2022-35915 is medium (5.3).