# CVE-2021-41496: Buffer Copy without Checking Size of Input in NumPy

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T19:56:35.000Z
- Modified: 2026-06-17T04:08:34.020Z
- Also known as: GHSA-f7c7-j99h-c22f, PYSEC-2021-857
- Weaknesses: CWE-120
- Assigned by: mitre

## 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)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- numpy (PyPI): before 1.19; before 1.19.0
- numpy numpy: before 1.19.0

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/numpy/numpy/issues/19000> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41496> (advisory)
- <https://github.com/numpy/numpy> (package)
- <https://github.com/advisories/GHSA-f7c7-j99h-c22f> (advisory)

## Sources

- CVE List: [CVE-2021-41496](https://www.cve.org/CVERecord?id=CVE-2021-41496), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-f7c7-j99h-c22f](https://github.com/advisories/GHSA-f7c7-j99h-c22f), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-41496](https://nvd.nist.gov/vuln/detail/CVE-2021-41496), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-857](https://osv.dev/vulnerability/PYSEC-2021-857), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-41496 · Whole record: https://cve.day/CVE-2021-41496.json · Rebuilt by cve.day 2026-11-25T22:58:06.074Z
