CVE-2023-30541Openzeppelin Contracts
Medium 5.3 No auth needed
Follow: this CVE · Openzeppelin · Openzeppelin Contracts We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 59
- Auth required
- No
- Published
- Apr 17, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-436
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Contracts.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @openzeppelin/contracts |
≥ 3.2.0 < 4.8.3 |
4.8.3 |
npm install @openzeppelin/contracts@4.8.3 |
| npm | @openzeppelin/contracts-upgradeable |
≥ 3.2.0 < 4.8.3 |
4.8.3 |
npm install @openzeppelin/contracts-upgradeable@4.8.3 |
Per OSV / GitHub Advisories (GHSA-mx2q-35m2-x2rh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | contracts | ≥ 3.2.0 < 4.8.3 |
| openzeppelin | contracts_upgradeable | ≥ 3.2.0 < 4.8.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory