Vulnerability Description
OpenZeppelin Contracts is a library for secure smart contract development. A function in the implementation contract may be inaccessible if its selector clashes with one of the proxy's own selectors. Specifically, if the clashing function has a different signature with incompatible ABI encoding, the proxy could revert while attempting to decode the arguments from calldata. The probability of an accidental clash is negligible, but one could be caused deliberately and could cause a reduction in availability. The issue has been fixed in version 4.8.3. As a workaround if a function appears to be inaccessible for this reason, it may be possible to craft the calldata such that ABI decoding does not fail at the proxy and the function is properly proxied through.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Openzeppelin | Contracts | >= 3.2.0, < 4.8.3 |
| Openzeppelin | Contracts Upgradeable | >= 3.2.0, < 4.8.3 |
Related Weaknesses (CWE)
References
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4154Patch
- https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3Release Notes
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-Vendor Advisory
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4154Patch
- https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3Release Notes
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-Vendor Advisory
FAQ
What is CVE-2023-30541?
CVE-2023-30541 is a vulnerability with a CVSS score of 5.3 (MEDIUM). OpenZeppelin Contracts is a library for secure smart contract development. A function in the implementation contract may be inaccessible if its selector clashes with one of the proxy's own selectors. ...
How severe is CVE-2023-30541?
CVE-2023-30541 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-30541?
Check the references section above for vendor advisories and patch information. Affected products include: Openzeppelin Contracts, Openzeppelin Contracts Upgradeable.