Vulnerabilities · 2021 · Openzeppelin
CVE-2021-41264
Openzeppelin Contracts vulnerability
OpenZeppelin Contracts is a library for smart contract development. In affected versions upgradeable contracts using `UUPSUpgradeable` may be vulnerable to an attack affecting uninitialized implementation contracts. A fix is included in version 4.3.2 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`. For users unable to upgrade; initialize implementation contracts using `UUPSUpgradeable` by invoking the initializer function (usually called `initialize`). An example is provided [in the forum](https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301).
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Contracts. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Openzeppelin Contracts runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301 · Mitigation
- github.com/OpenZeppelin/openzeppelin-contracts/commit/024cc50df478d2e8f78539819749e94d6df6 · Patch
- github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-5vp3-v4hc-gx76 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-41264
- cve.org/CVERecord?id=CVE-2021-41264
More vulnerabilities in Openzeppelin products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.