CVE-2022-39384
published medium CVSS 3.1 · 5.6OpenZeppelin Contracts initializer reentrancy may lead to double initialization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenZeppelin | — | openzeppelin-contracts>= 3.2.0, < 4.4.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.6 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenZeppelin | openzeppelin-contracts | >= 3.2.0, < 4.4.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-665 CWE-665: Improper Initialization
References
2Provider assertions
3GitHub_M · cna
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5b878db744a64c357435ebfd87066d7d6e8a311c4816513220d3a75bb463369d
- Ingested
- 23 Sep 2026, 08:02:02 UTC
- Source record
- Official CVE record