PT-2021-23225 · Openzeppelin · @Openzeppelin/Contracts-Upgradeable+1
Frangio
·
Published
2021-09-15
·
Updated
2021-11-15
·
CVE-2021-41264
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
@openzeppelin/contracts versions prior to 4.3.2
@openzeppelin/contracts-upgradeable versions prior to 4.3.2
Description
The issue affects upgradeable contracts using
UUPSUpgradeable in OpenZeppelin Contracts, a library for smart contract development. These contracts may be vulnerable to an attack affecting uninitialized implementation contracts.Recommendations
For versions prior to 4.3.2, update to version 4.3.2 of
@openzeppelin/contracts and @openzeppelin/contracts-upgradeable.
As a temporary workaround for users unable to upgrade, initialize implementation contracts using UUPSUpgradeable by invoking the initializer function, usually called initialize.Fix
Improper Initialization
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Openzeppelin Contracts
@Openzeppelin/Contracts-Upgradeable