PT-2021-24336

CVE-2021-46320

·

Published

2021-12-14

·

Updated

2022-02-09

Description by

CVSS 3.1
5.6
Medium
MetricsAV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions: OpenZeppelin versions <=v4.4.0
Description: Initializer functions that are invoked separate from contract creation, such as minimal proxies, may be reentered if they make an untrusted non-view external call. Normally, once an initializer has finished running, it can never be re-executed. However, an exception to support multiple inheritance made reentrancy possible, breaking the expectation of a single execution. The impact of this issue is believed to be minor, as upgradeable proxies are commonly initialized together with contract creation, where reentrancy is not feasible.
Recommendations: For OpenZeppelin versions <=v4.4.0, update to version v4.4.1 of @openzeppelin/contracts and @openzeppelin/contracts-upgradeable to fix the issue. As a temporary workaround, avoid making untrusted external calls during initialization.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-88G8-F5MF-F5RJ
GHSA-9C22-PWXW-P6HX
Found an issue in the description? Have something to add? Feel free to write us 👾