Security mailing lists by PureSourceCode

CVE-2022-39384

MEDIUM 5.6CVSS 3.1

Improper Initialization in OpenZeppelin

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.

Published
4 Nov 2022
Last modified
16 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-665
Also known as
CVE-2021-46320GHSA-88g8-f5mf-f5rjGHSA-9c22-pwxw-p6hx
Sources
NVDJSONOSV GHSA-88g8-f5mf-f5rjJSONOSV GHSA-9c22-pwxw-p6hxJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.6 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.6 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 5.6 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD openzeppelin contracts
cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:*
>= 3.2.0, < 4.4.1 4.4.1
NVD openzeppelin contracts_upgradeable
cpe:2.3:a:openzeppelin:contracts_upgradeable:*:*:*:*:*:node.js:*:*
>= 3.2.0, < 4.4.1 4.4.1
OSV npm @openzeppelin/contracts < 4.4.1 4.4.1
OSV npm @openzeppelin/contracts >= 3.2.0, < 4.4.1 4.4.1
OSV npm @openzeppelin/contracts-upgradeable >= 3.2.0, < 4.4.1 4.4.1

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 4 Nov 2022)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Dec 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Feb 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.