Advisory

GHSA-88g8-f5mf-f5rj

Also known as: CVE-2021-46320, CVE-2022-39384, GHSA-9c22-pwxw-p6hx

Summary

Improper Initialization in OpenZeppelin

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-02-05 00:00 UTC
Modified
2026-07-16 03:56 UTC

Affected packages and fixes

@openzeppelin/contracts

npm · All systems

Affected

  • introduced 0, fixed 4.4.1 (semver)

Fixed versions

4.4.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences