{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-46320","id":"CVE-2021-46320","title":"Improper Initialization in OpenZeppelin","description":"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 expectati","descriptionLong":"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.","published":"2022-02-04T11:35:52.000Z","updated":"2026-10-20T10:55:09.495137448Z","reserved":"2022-01-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@openzeppelin/contracts","purl":"pkg:npm/%40openzeppelin/contracts","ranges":["<4.4.1",">=3.2.0 <4.4.1"],"fixed":["4.4.1"],"advisory":"GHSA-88g8-f5mf-f5rj"},{"ecosystem":"npm","name":"@openzeppelin/contracts-upgradeable","purl":"pkg:npm/%40openzeppelin/contracts-upgradeable","ranges":[">=3.2.0 <4.4.1"],"fixed":["4.4.1"],"advisory":"GHSA-9c22-pwxw-p6hx"}],"cwes":["CWE-665"],"aliases":["CVE-2022-39384","GHSA-88g8-f5mf-f5rj","GHSA-9c22-pwxw-p6hx"],"references":[{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-9c22-pwxw-p6hx","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46320","tags":["advisory"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3006","tags":["web"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts","tags":["package"]},{"url":"https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.4.1","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39384","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01217,"epssPercentile":0.69246,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-46320","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46320","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-46320","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-88g8-f5mf-f5rj","ok":true,"note":"GHSA-88g8-f5mf-f5rj"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9c22-pwxw-p6hx","ok":true,"note":"GHSA-9c22-pwxw-p6hx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46320","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}