CVE-2022-39384
MEDIUM 5.6CVSS 3.1Improper Initialization in OpenZeppelin
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.
- Published
- 4 Nov 2022
- Last modified
- 16 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-665
- Also known as
- CVE-2021-46320GHSA-88g8-f5mf-f5rjGHSA-9c22-pwxw-p6hx
- Sources
- NVDJSONOSV GHSA-88g8-f5mf-f5rjJSONOSV GHSA-9c22-pwxw-p6hxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | contractscpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:* |
>= 3.2.0, < 4.4.1 | 4.4.1 |
| NVD | openzeppelin | contracts_upgradeablecpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:* |
>= 3.2.0, < 4.4.1 | 4.4.1 |
| OSV | npm | @openzeppelin/contracts | < 4.4.1 | 4.4.1 |
| OSV | npm | @openzeppelin/contracts | >= 3.2.0, < 4.4.1 | 4.4.1 |
| OSV | npm | @openzeppelin/contracts-upgradeable | >= 3.2.0, < 4.4.1 | 4.4.1 |
References
- https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006 · Patch, Third Party Advisory, WEB
- https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-46320 · ADVISORY
- https://github.com/OpenZeppelin/openzeppelin-contracts · PACKAGE
- https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.4.1 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39384 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 4 Nov 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Dec 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Feb 2022)