cve.bz

CVE-2021-46320 openzeppelin openzeppelin: Improper Initialization

7.5 highEPSS 1.2%Fix available

High (7.5) in openzeppelin openzeppelin. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in @openzeppelin/contracts 4.4.1.

On this page
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-665 Improper Initialization
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • @openzeppelin/contracts (npm): fixed in 4.4.1
  • @openzeppelin/contracts-upgradeable (npm): fixed in 4.4.1

Ask an AI about this CVE

Show the promptExplain CVE-2021-46320 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-46320?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-46320?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-46320 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openzeppelin:openzeppelinfrom 3.2.0 through 4.4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-88g8-f5mf-f5rjnpm@openzeppelin/contracts<4.4.14.4.1
GHSA-9c22-pwxw-p6hxnpm@openzeppelin/contracts>=3.2.0 <4.4.14.4.1
GHSA-9c22-pwxw-p6hxnpm@openzeppelin/contracts-upgradeable>=3.2.0 <4.4.14.4.1

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON