{"id":"GHSA-9c22-pwxw-p6hx","revision":"a1bb9b9c87c643ee8c45122c976b6968","records":[{"revision":"a1bb9b9c87c643ee8c45122c976b6968","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9c22-pwxw-p6hx","aliases":["CVE-2021-46320","CVE-2022-39384","GHSA-88g8-f5mf-f5rj"],"title":"OpenZeppelin Contracts initializer reentrancy may lead to double initialization","description":"### Impact\n\nInitializer 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.\n\nOnce 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.\n\nNote 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.\n\n### Patches\n\nA fix is included in the version v4.4.1 of `@openzeppelin/contracts` and `@openzeppelin/contracts-upgradeable`.\n\n### Workarounds\n\nAvoid untrusted external calls during initialization.\n\n### References\nhttps://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006\n\n### Credits\n\nThis issue was identified and reported by @chaitinblockchain through [our bug bounty on Immunefi](https://immunefi.com/bounty/openzeppelin/).\n\n### For more information\n\nIf you have any questions or comments about this advisory, or need assistance executing the mitigation, email us at security@openzeppelin.com.\n","state":0,"publishedAt":"2021-12-14T21:47:33+00:00","modifiedAt":"2026-07-16T03:59:27.534685+00:00","affected":[{"ecosystem":"npm","name":"@openzeppelin/contracts","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.2.0"},{"kind":"fixed","version":"4.4.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@openzeppelin/contracts-upgradeable","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.2.0"},{"kind":"fixed","version":"4.4.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx","https://nvd.nist.gov/vuln/detail/CVE-2022-39384","https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006","https://github.com/OpenZeppelin/openzeppelin-contracts"],"sourceUrl":"https://github.com/advisories/GHSA-9c22-pwxw-p6hx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9c22-pwxw-p6hx","identifiers":["GHSA-9c22-pwxw-p6hx","CVE-2021-46320","CVE-2022-39384","GHSA-88g8-f5mf-f5rj"]},"retained":false,"historicalAffected":[]}],"coverage":[]}