Improper Initialization in OpenZeppelin
High severity
GitHub Reviewed
Published
Feb 5, 2022
to the GitHub Advisory Database
•
Updated Feb 3, 2023
Description
Published by the National Vulnerability Database
Feb 4, 2022
Published to the GitHub Advisory Database
Feb 5, 2022
Reviewed
Feb 11, 2022
Last updated
Feb 3, 2023
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.
References