CVE-2023-30541
published 2023-04-17CVE-2023-30541: OpenZeppelin Contracts is a library for secure smart contract development. A function in the implementation contract may be inaccessible if its selector…
PriorityP424medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
0.81%
52.9th percentile
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.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| openzeppelin | contracts | >= 3.2.0 < 4.8.3 | 4.8.3 |
| openzeppelin | contracts | >= 3.2.0 < 4.8.3 | 4.8.3 |
| openzeppelin | contracts-upgradeable | >= 3.2.0 < 4.8.3 | 4.8.3 |
| openzeppelin | contracts_upgradeable | >= 3.2.0 < 4.8.3 | 4.8.3 |
| openzeppelin | openzeppelin-contracts | — | — |
| openzeppelin | openzeppelin-contracts | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
ghsa·2023-04-17
CVE-2023-30541 [MEDIUM] CWE-436 OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
### Impact
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.
### Patches
The issue has been fixed in v4.8.3.
### Workarounds
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.
### References
https://github.co
OSV
OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
osv·2023-04-17
CVE-2023-30541 [MEDIUM] OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
OpenZeppelin Contracts TransparentUpgradeableProxy clashing selector calls may not be delegated
### Impact
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.
### Patches
The issue has been fixed in v4.8.3.
### Workarounds
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.
### References
https://github.co
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4154https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-mx2q-35m2-x2rhhttps://github.com/OpenZeppelin/openzeppelin-contracts/pull/4154https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.3https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-mx2q-35m2-x2rh
2023-04-17
Published