# CVE-2021-46320: Improper Initialization in OpenZeppelin

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-12-14T21:47:33.000Z
- Modified: 2026-07-16T03:59:27.534Z
- Also known as: GHSA-88g8-f5mf-f5rj, GHSA-9c22-pwxw-p6hx
- Related: CVE-2022-39384
- Weaknesses: CWE-665
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- @openzeppelin/contracts (npm): before 4.4.1; from 3.2.0 before 4.4.1
- @openzeppelin/contracts-upgradeable (npm): from 3.2.0 before 4.4.1
- openzeppelin openzeppelin: from 3.2.0 up to 4.4.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## 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)

## Sources

- CVE List: [CVE-2021-46320](https://www.cve.org/CVERecord?id=CVE-2021-46320), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-88g8-f5mf-f5rj](https://github.com/advisories/GHSA-88g8-f5mf-f5rj), CC-BY-4.0, modified 2026-07-16
- GitHub Advisory Database: [GHSA-9c22-pwxw-p6hx](https://github.com/advisories/GHSA-9c22-pwxw-p6hx), CC-BY-4.0, modified 2026-07-16
- NVD: [CVE-2021-46320](https://nvd.nist.gov/vuln/detail/CVE-2021-46320), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46320 · Whole record: https://cve.day/CVE-2021-46320.json · Rebuilt by cve.day 2026-11-25T22:58:06.768Z
