{"schemaVersion":3,"id":"CVE-2021-33430","aliases":["GHSA-6p56-wp2h-9hxr","PYSEC-2021-854","UBUNTU-CVE-2021-33430","DEBIAN-CVE-2021-33430","openSUSE-SU-2025:14743-1"],"status":"published","duplicateOf":null,"title":null,"description":"A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service. NOTE: The vendor does not agree this is a vulneraility; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user","dates":{"published":"2021-12-17T18:36:51.000Z","modified":"2024-08-03T23:50:42.972Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01155,"percentile":0.66709,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.08099999999999999,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01074},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01155,"percentile":0.66709}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01074,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01155,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01155,"percentile":0.66709}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NUMPY_NUMPY","name":"Numpy","source":"github","url":"https://github.com/numpy/numpy/issues/9560#issuecomment-322395292","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"debian","product":"numpy","name":"numpy","label":"numpy","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/numpy","purlType":"deb","versions":[{"text":"< 1:1.21.4-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.21.4-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"numpy","name":"numpy","label":"numpy","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/numpy","purlType":"deb","versions":[{"text":"< 1:1.17.4-5ubuntu3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.17.4-5ubuntu3.1","eol":null,"hubHref":null},{"vendor":"numpy","product":"numpy","name":"numpy","label":"numpy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.9.0, ≤ 1.9.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.9.0, ≤ 1.9.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"numpy","label":"NumPy","category":"framework"}},"hubHref":"/vendor/numpy/numpy"},{"vendor":"PyPI","product":"numpy","name":"numpy","label":"numpy","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/numpy","purlType":"pypi","versions":[{"text":"≥ 1.9.0, < 1.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.9.0, < 1.21 | ≥ 1.9.0, < 1.10.0","eol":null,"hubHref":null},{"vendor":"opensuse","product":"python-numba&distro=openSUSE Tumbleweed","name":"python-numba","label":"python-numba&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/python-numba&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 0.61.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.61.0-1.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/numpy/numpy/issues/18939","label":"github.com/numpy/numpy/issues/18939","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33430","label":"nvd.nist.gov/vuln/detail/CVE-2021-33430","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/numpy/numpy/commit/ae317fd9ff3e79c0eac357d723bfc29cbd625f2e","label":"github.com/numpy/numpy/commit/ae317fd9ff3e79c0eac357d723bfc29cbd625f2e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/numpy/numpy","label":"github.com/numpy/numpy","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-854.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-854.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-6p56-wp2h-9hxr","label":"github.com/advisories/GHSA-6p56-wp2h-9hxr","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-33430","label":"ubuntu.com/security/CVE-2021-33430","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/numpy/numpy/pull/18989","label":"github.com/numpy/numpy/pull/18989","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/numpy/numpy/commit/16f7824b4d935b6aee98298ca4123d57174a6f2e","label":"github.com/numpy/numpy/commit/16f7824b4d935b6aee98298ca4123d57174a6f2e","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5763-1","label":"ubuntu.com/security/notices/USN-5763-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-33430","label":"www.cve.org/CVERecord?id=CVE-2021-33430","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-33430","label":"security-tracker.debian.org/tracker/CVE-2021-33430","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/PHMRQDMX53277YOHO7PEBZQRE6KORMWU/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-33430","label":"www.suse.com/security/cve/CVE-2021-33430","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["MGASA-2022-0032","OPENSUSE-SU-2022:0134-1","OPENSUSE-SU-2022:1064-1","OPENSUSE-SU-2024:13220-1","OPENSUSE-SU-2024:14311-1","OPENSUSE-SU-2026:11371-1","RHSA-2022:0987","RHSA-2022:1000","SUSE-SU-2022:0118-1","SUSE-SU-2022:0134-1","SUSE-SU-2022:0134-2","SUSE-SU-2022:0134-3","SUSE-SU-2022:0206-1","SUSE-SU-2022:1064-1","SUSE-SU-2022:1064-2","SUSE-SU-2022:2441-1","USN-5763-1"],"duplicates":[],"related":["OPENSUSE-SU-2022:0134-1","OPENSUSE-SU-2022:1064-1","OPENSUSE-SU-2024:13220-1","OPENSUSE-SU-2024:14311-1","OPENSUSE-SU-2026:11371-1","SUSE-SU-2022:0118-1","SUSE-SU-2022:0134-1","SUSE-SU-2022:0134-2","SUSE-SU-2022:0134-3","SUSE-SU-2022:0206-1","SUSE-SU-2022:1064-1","SUSE-SU-2022:1064-2","SUSE-SU-2022:2441-1","USN-5763-1"]},"timeline":[{"kind":"published","date":"2021-12-17T18:36:51.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T23:50:42.972Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T05:18:48.485Z","stale":false,"partial":false}}