{"id":"CVE-2021-46320","published":"2022-02-04T11:35:52Z","modified":"2024-08-04T05:02:11Z","title":"In OpenZeppelin <=v4.4.0, initializer functions that are invoked separate from contract creation (the most prominent…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01217,"percentile":0.69343,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":13.87}]},"affected":[{"ecosystem":"npm","package":"@openzeppelin/contracts","vulnerableRanges":["<4.4.1"],"patched":["4.4.1"],"from":["GHSA-88g8-f5mf-f5rj"],"provenance":"source"}],"summary":{"text":"The flaw is in OpenZeppelin contracts up to v4.4.0, specifically in initializer functions that run separately from contract creation, such as those behind minimal proxies. An attacker who can get such an initializer to make an untrusted non-view external call can reenter it, because an exception added to support multiple inheritance broke the guarantee that it executes only once.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:42Z"},"euvd":{"id":"EUVD-2022-0912","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-openzeppelin-contracts-cve-2021-46320","children":[{"from":"CVE-2021-46320","to":"CVE-2022-39384","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-9c22-pwxw-p6hx","via":"reference","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx"},{"kind":"osv-related","provenance":"source","id":"GHSA-88g8-f5mf-f5rj","via":"reference","url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx"},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-39167","published":"2021-08-26","fixed":"4.3.1","kev":false},{"cve":"CVE-2021-41264","published":"2021-11-12","fixed":"4.3.2","kev":false,"link":{"from":"CVE-2021-41264","to":"CVE-2021-46320","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.3.2","toFixed":"4.4.1","daysApart":84}]}},{"cve":"CVE-2021-46320","published":"2022-02-04","fixed":"4.4.1","kev":false},{"cve":"CVE-2022-39384","published":"2022-11-04","fixed":"4.4.1","kev":false},{"cve":"CVE-2022-31170","published":"2022-07-21","fixed":"4.7.1","kev":false,"link":{"from":"CVE-2021-46320","to":"CVE-2022-31170","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.4.1","toFixed":"4.7.1","daysApart":167}]}},{"cve":"CVE-2022-31172","published":"2022-07-21","fixed":"4.7.1","kev":false,"link":{"from":"CVE-2021-46320","to":"CVE-2022-31172","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@openzeppelin/contracts","fromFixed":"4.4.1","toFixed":"4.7.1","daysApart":167}]}}],"package":"npm:@openzeppelin/contracts"}}