Vulnerability · Published Nov 12, 2021 · Assigned by GitHub_M

CVE-2021-41264UUPSUpgradeable vulnerability in OpenZeppelin Contracts

Critical 9.8

In plain English

A critical-severity security flaw in openzeppelin-contracts from OpenZeppelin. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 74% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.5%top 25.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@openzeppelin/contracts4.3.2GHSA-5vp3-v4hc-gx76
npm@openzeppelin/contracts-upgradeable4.3.2GHSA-5vp3-v4hc-gx76

Affected products (as reported)

VendorProductVersions
OpenZeppelin openzeppelin-contracts >= 4.1.0 < 4.3.2

Weakness: CWE-665 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References