Live threats

All CVEs / Openzeppelin

CVE-2021-46320Openzeppelin

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Feb 4, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-665
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

In OpenZeppelin <=v4.4.0, initializer functions that are invoked separate from contract creation (the most prominent example being minimal proxies) may be reentered if they make an untrusted non-view external call. Once an initializer has finished running it can never be re-executed. However, an exception put in place to support multiple inheritance made reentrancy possible, breaking the expectation that there is a single execution.

Original NVD text.

What to do

  1. Apply the vendor's security update for Openzeppelin.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @openzeppelin/contracts < 4.4.1 4.4.1 npm install @openzeppelin/contracts@4.4.1
npm @openzeppelin/contracts ≥ 3.2.0 < 4.4.1 4.4.1 npm install @openzeppelin/contracts@4.4.1
npm @openzeppelin/contracts-upgradeable ≥ 3.2.0 < 4.4.1 4.4.1 npm install @openzeppelin/contracts-upgradeable@4.4.1

Per OSV / GitHub Advisories (GHSA-88g8-f5mf-f5rj, GHSA-9c22-pwxw-p6hx). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
openzeppelinopenzeppelin≥ 3.2.0 ≤ 4.4.0

Official sources

References

Links published by the sources. Open them with care.