CVE-2021-46320
Last modified
CVE-2021-46320 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Openzeppelin | Openzeppelin | >= 3.2.0, <= 4.4.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-46320?
How severe is CVE-2021-46320?
How do I fix CVE-2021-46320?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-46311A NULL pointer dereference vulnerability exists in GPAC v1.1…5.5
- CVE-2021-46312An issue was discovered IW44EncodeCodec.cpp in djvulibre 3.5…6.5
- CVE-2021-46313The binary MP4Box in GPAC v1.0.1 was discovered to contain a…5.5
- CVE-2021-46314A Remote Command Execution (RCE) vulnerability exists in HNA…9.8
- CVE-2021-46315Remote Command Execution (RCE) vulnerability exists in HNAP1…9.8
- CVE-2021-46319Remote Code Execution (RCE) vulnerability exists in D-Link R…9.8
- CVE-2021-46321Tenda AC Series Router AC11_V02.03.01.104_CN was discovered …9.8
- CVE-2021-46322Duktape v2.99.99 was discovered to contain a SEGV vulnerabil…5.5
- CVE-2021-46323Espruino 2v11.251 was discovered to contain a SEGV vulnerabi…5.5
- CVE-2021-46324Espruino 2v11.251 was discovered to contain a stack buffer o…7.8
- CVE-2021-46325Espruino 2v10.246 was discovered to contain a stack buffer o…7.8
- CVE-2021-46326Moddable SDK v11.5.0 was discovered to contain a heap-buffer…7.8
Are you affected by CVE-2021-46320?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
