CVE-2021-41264
CRITICAL 9.8CVSS 3.1UUPSUpgradeable vulnerability in @openzeppelin/contracts
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.
- Published
- 12 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-665
- Also known as
- GHSA-5vp3-v4hc-gx76
- Sources
- NVDJSONOSV GHSA-5vp3-v4hc-gx76JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | contractscpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:* |
>= 4.1.0, < 4.3.2 | 4.3.2 |
| OSV | npm | @openzeppelin/contracts | >= 4.1.0, < 4.3.2 | 4.3.2 |
| OSV | npm | @openzeppelin/contracts-upgradeable | >= 4.1.0, < 4.3.2 | 4.3.2 |
References
- https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301 · Issue Tracking, Mitigation, Patch, Vendor Advisory, WEB
- https://github.com/OpenZeppelin/openzeppelin-contracts/commit/024cc50df478d2e8f78539819749e94d6df60592 · Patch, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-5vp3-v4hc-gx76 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41264 · ADVISORY
- https://github.com/OpenZeppelin/openzeppelin-contracts · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 Nov 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 15 Sep 2021)