CVE-2022-39384
published 2022-11-04CVE-2022-39384: OpenZeppelin Contracts is a library for secure smart contract development. Before version 4.4.1 but after 3.2.0, initializer functions that are invoked…
PriorityP428medium5.6CVSS 3.1
AVNACHPRNUINSUCLILAL
EPSS
0.49%
39.1th percentile
OpenZeppelin Contracts is a library for secure smart contract development. Before version 4.4.1 but after 3.2.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 in the scenario described above, breaking the expectation that there is a single execution. Note that upgradeable proxies are commonly initialized together with contract creation, where reentrancy is not feasible, so the impact of this issue is believed to be minor. This issue has been patched, please upgrade to version 4.4.1. As a workaround, avoid untrusted external calls during initialization.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| openzeppelin | contracts | >= 3.2.0 < 4.4.1 | 4.4.1 |
| openzeppelin | contracts | >= 3.2.0 < 4.4.1 | 4.4.1 |
| openzeppelin | contracts-upgradeable | >= 3.2.0 < 4.4.1 | 4.4.1 |
| openzeppelin | contracts_upgradeable | >= 3.2.0 < 4.4.1 | 4.4.1 |
| openzeppelin | openzeppelin-contracts | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
ghsa·2021-12-14
CVE-2022-39384 [MEDIUM] CWE-665 OpenZeppelin Contracts initializer reentrancy may lead to double initialization
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
### Impact
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 in the scenario described above, breaking the expectation that there is a single execution.
Note that upgradeable proxies are commonly initialized together with contract creation, where reentrancy is not feasible, so the impact of this issue is believed to be minor.
### Patches
A fix is included in the version v4.4.1 of `@openzeppelin/contracts` and
OSV
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
osv·2021-12-14
CVE-2022-39384 [MEDIUM] OpenZeppelin Contracts initializer reentrancy may lead to double initialization
OpenZeppelin Contracts initializer reentrancy may lead to double initialization
### Impact
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 in the scenario described above, breaking the expectation that there is a single execution.
Note that upgradeable proxies are commonly initialized together with contract creation, where reentrancy is not feasible, so the impact of this issue is believed to be minor.
### Patches
A fix is included in the version v4.4.1 of `@openzeppelin/contracts` and
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hxhttps://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx
2022-11-04
Published