Live threats

All CVEs / Openzeppelin

CVE-2022-39384Openzeppelin Contracts

Medium 5.6 No auth needed

Priority
49
CVSS 3.1
5.6
EPSS
0.8%
probability of exploitation in 30 days · percentile 53
Auth required
No
Published
Nov 4, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-665
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

What happens

OpenZeppelin Contracts is a library for secure smart contract development. Before version 4.4.1 but after 3.2.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 in the scenario described above, breaking the expectation that there is a single execution. Note that upgradeable proxies are commonly initialized together with contract creation, where reentrancy is not feasible, so the impact of this issue is believed to be minor. This issue has been patched, please upgrade to version 4.4.1. As a workaround, avoid untrusted external calls during initialization.

Original NVD text.

What to do

  1. Apply the vendor's security update for Contracts.
  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
openzeppelincontracts≥ 3.2.0 < 4.4.1
openzeppelincontracts_upgradeable≥ 3.2.0 < 4.4.1

Official sources

References

Links published by the sources. Open them with care.