CVE-2021-46320 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 pla...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Openzeppelin | Openzeppelin | ≥ 3.2.0, ≤ 4.4.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-46320 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-302176-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2022-02-04 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-665: CWE-665
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-665
CAPEC-26 Leveraging Race Conditions via CWE-665
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-46320 affects OpenZeppelin versions <=v4.4.0, allowing reentrancy in initializer functions due to an exception for multiple inheritance, which can lead to unexpected behavior and potential exploitation.
An attacker can exploit this vulnerability by invoking initializer functions that make untrusted non-view external calls, leading to reentrancy attacks. This can occur in minimal proxies and other similar contract creation scenarios.
Questions
What is CVE-2021-46320?
CVE-2021-46320 affects OpenZeppelin versions <=v4.4.0, allowing reentrancy in initializer functions due to an exception for multiple inheritance, which can lead to unexpected behavior and potential exploitation.
What is the CVSS score for CVE-2021-46320?
CVE-2021-46320 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.3%.
Is CVE-2021-46320 actively exploited?
No confirmed active exploitation of CVE-2021-46320 as of 2026-05-30.
How do I remediate CVE-2021-46320?
Priority: HIGH.
What systems are affected by CVE-2021-46320?
CVE-2021-46320 affects Openzeppelin Openzeppelin.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Openzeppelin","product":"Openzeppelin","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.