CVE-2021-46320Openzeppelin
High 7.5 No auth needed
Follow: this CVE · Openzeppelin · Openzeppelin We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Feb 4, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-665
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Openzeppelin.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @openzeppelin/contracts |
< 4.4.1 |
4.4.1 |
npm install @openzeppelin/contracts@4.4.1 |
| npm | @openzeppelin/contracts |
≥ 3.2.0 < 4.4.1 |
4.4.1 |
npm install @openzeppelin/contracts@4.4.1 |
| npm | @openzeppelin/contracts-upgradeable |
≥ 3.2.0 < 4.4.1 |
4.4.1 |
npm install @openzeppelin/contracts-upgradeable@4.4.1 |
Per OSV / GitHub Advisories (GHSA-88g8-f5mf-f5rj, GHSA-9c22-pwxw-p6hx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| openzeppelin | openzeppelin | ≥ 3.2.0 ≤ 4.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory