{"schemaVersion":3,"id":"CVE-2021-41496","aliases":["GHSA-f7c7-j99h-c22f","PYSEC-2021-857","UBUNTU-CVE-2021-41496","DEBIAN-CVE-2021-41496"],"status":"published","duplicateOf":null,"title":null,"description":"Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)","dates":{"published":"2021-12-17T19:56:35.000Z","modified":"2024-08-04T03:15:28.678Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/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":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00396,"percentile":0.32566,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.027999999999999987,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00368},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00396,"percentile":0.32566}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00396,"percentile":0.32566}]},"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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","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},{"text":"< 1:1.21.5-1ubuntu22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.17.4-5ubuntu3.1 | < 1:1.21.5-1ubuntu22.04.1","eol":null,"hubHref":null},{"vendor":"numpy","product":"numpy","name":"numpy","label":"numpy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.19.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.19.0","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.19","noFixRecorded":false,"fixedIn":null},{"text":"< 1.19.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.19 | < 1.19.0","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/numpy/numpy/issues/19000","label":"github.com/numpy/numpy/issues/19000","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","label":"www.oracle.com/security-alerts/cpujul2022.html","hostname":"www.oracle.com","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41496","label":"nvd.nist.gov/vuln/detail/CVE-2021-41496","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/numpy/numpy","label":"github.com/numpy/numpy","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-f7c7-j99h-c22f","label":"github.com/advisories/GHSA-f7c7-j99h-c22f","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-41496","label":"ubuntu.com/security/CVE-2021-41496","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/numpy/numpy/pull/20630","label":"github.com/numpy/numpy/pull/20630","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/numpy/numpy/commit/271010f1037150e95017f803f4214b8861e528f2","label":"github.com/numpy/numpy/commit/271010f1037150e95017f803f4214b8861e528f2","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-41496","label":"www.cve.org/CVERecord?id=CVE-2021-41496","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41496","label":"security-tracker.debian.org/tracker/CVE-2021-41496","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"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-17T19:56:35.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T03:15:28.678Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T20:20:06.134Z","stale":false,"partial":false}}