UUPSUpgradeable vulnerability in OpenZeppelin Contracts (OpenZeppelin openzeppelin-contracts)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.49 % · percentile 74 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
Description
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).
Weaknesses (CWE)
- CWE-665 — Improper Initialization
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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 | GitHub_M |
| 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 · security-advisories@github.com (Secondary) |
| CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-5vp3-v4hc-gx76 — UUPSUpgradeable vulnerability in @openzeppelin/contracts
European references
- ENISA EUVD · EUVD-2021-1988
- GCVE · GCVE-0-2021-41264
Affected configurations (NVD CPE)
cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*≥ 4.1.0 < 4.3.2
Affected products
| Product | Versions |
|---|---|
| OpenZeppelin · openzeppelin-contracts | affected >= 4.1.0 < 4.3.2 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |