CVE-2022-35915

MEDIUMCVSS 5.3/10EPSS 0.64%

Last modified

CVE-2022-35915 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.64% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

EPSS Probability
0.64%

45.8th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
OpenzeppelinContracts>= 2.0.0, < 4.7.2
OpenzeppelinContracts Upgradeable>= 3.2.0, < 4.7.2
OpenzeppelinOpenzeppelin-Eth>= 2.0.0
OpenzeppelinOpenzeppelin-Solidity>= 2.0.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2022-35915?
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.
How severe is CVE-2022-35915?
CVE-2022-35915 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 0.64% probability of exploitation in the next 30 days.
How do I fix CVE-2022-35915?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-35915?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST