{"id":"CVE-2021-41264","published":"2021-11-12T17:55:11Z","modified":"2024-08-04T03:08:31Z","title":"UUPSUpgradeable vulnerability in OpenZeppelin Contracts","vendor":"OpenZeppelin","product":"openzeppelin-contracts","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01487,"percentile":0.73948,"provenance":"source"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-5vp3-v4hc-gx76","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/commit/024cc50df478d2e8f78539819749e94d6df60592","tags":["x_refsource_MISC"]},{"url":"https://forum.openzeppelin.com/t/security-advisory-initialize-uups-implementation-contracts/15301","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":14.79},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"openzeppelin","affectedVersions":[{"vendor":"OpenZeppelin","product":"openzeppelin-contracts","versions":[">= 4.1.0 < 4.3.2"]}],"affected":[{"ecosystem":"npm","package":"@openzeppelin/contracts","vulnerableRanges":[">=4.1.0, <4.3.2"],"patched":["4.3.2"],"from":["GHSA-5vp3-v4hc-gx76"],"provenance":"source"},{"ecosystem":"npm","package":"@openzeppelin/contracts-upgradeable","vulnerableRanges":[">=4.1.0, <4.3.2"],"patched":["4.3.2"],"from":["GHSA-5vp3-v4hc-gx76"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-1988","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-39167","published":"2021-08-26","fixed":"4.3.1","kev":false,"link":{"from":"CVE-2021-39167","to":"CVE-2021-41264","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.3.1","toFixed":"4.3.2","daysApart":78}]}},{"cve":"CVE-2021-41264","published":"2021-11-12","fixed":"4.3.2","kev":false},{"cve":"CVE-2021-46320","published":"2022-02-04","fixed":"4.4.1","kev":false,"link":{"from":"CVE-2021-41264","to":"CVE-2021-46320","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.3.2","toFixed":"4.4.1","daysApart":84}]}},{"cve":"CVE-2022-39384","published":"2022-11-04","fixed":"4.4.1","kev":false,"link":{"from":"CVE-2021-41264","to":"CVE-2022-39384","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.3.2","toFixed":"4.4.1","daysApart":357},{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts-upgradeable","fromFixed":"4.3.2","toFixed":"4.4.1","daysApart":357}]}},{"cve":"CVE-2022-31170","published":"2022-07-21","fixed":"4.7.1","kev":false}],"package":"npm:@openzeppelin/contracts"}}