CVE-2021-46320
HIGH 7.5CVSS 3.1Improper Initialization in OpenZeppelin
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.
- Published
- 4 Feb 2022
- Last modified
- 16 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-665
- Also known as
- CVE-2022-39384GHSA-88g8-f5mf-f5rjGHSA-9c22-pwxw-p6hx
- Sources
- NVDJSONOSV GHSA-88g8-f5mf-f5rjJSONOSV GHSA-9c22-pwxw-p6hxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | 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 |
| 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 |
| 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 |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openzeppelin | openzeppelincpe:2.3:a:openzeppelin:openzeppelin:*:*:*:*:*:*:*:* |
>= 3.2.0, <= 4.4.0 | |
| 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/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/pull/3006 · WEB
- 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:34 UTC · NVD: first stored (published 4 Feb 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)