Releases43
Frequency1 month 3 weeks
Last Release
NumPy is the fundamental package for scientific computing with Python. It contains among other things: - a powerful N-dimensional array object - sophisticated (broadcasting) functions - tools for integrating C/C++ and Fortran code - useful linear algebra, Fourier transform, and random number capabilities Besides its obvious scientific uses, NumPy can also be used as an efficient multi-dimensional container of generic data. Arbitrary data-types can be defined. This allows NumPy to seamlessly and speedily integrate with a wide variety of databases. NumPy is licensed under the [BSD license](https://www.numpy.org/license.html), enabling reuse with few restrictions. ## Getting Started To install NumPy, we strongly recommend using a ***scientific Python distribution***. See [Installing the SciPy Stack](https://www.scipy.org/install.html) for details. Many high quality online tutorials, courses, and books are available to get started with NumPy. For a quick introduction to NumPy we provide the [NumPy Tutorial](https://www.numpy.org/devdocs/user/quickstart.html). We also recommend the [SciPy Lecture Notes](https://scipy-lectures.org) for a broader introduction to the scientific Python ecosystem. For more information on the SciPy Stack (for which NumPy provides the fundamental array data structure), see [scipy.org](https://www.scipy.org). ## Documentation The most up-to-date NumPy documentation can be found at [Latest (development) version](https://www.numpy.org/devdocs). It includes a user guide, full reference documentation, a developer guide, meta information, and “NumPy Enhancement Proposals” (which include the NumPy Roadmap and detailed plans for major new features). A complete archive of documentation for all NumPy releases (minor versions; bug fix releases don’t contain significant documentation changes) since 2009 can be found at https://docs.scipy.org.

CVE History

CVEAffectedPublishedCVSS v3CVSS v2
<= 1.19.05.3 MEDIUM3.5 LOW

Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays. NOTE: While correct that validation is missing, an error can only occur due to an exhaustion of memory. If the user can exhaust memory, they are already privileged. Further, it should be practically impossible to construct an attack which can target the memory exhaustion to occur at exactly this place

< 1.19.05.5 MEDIUM2.1 LOW

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)

>= 1.9.0, <= 1.9.35.3 MEDIUM3.5 LOW

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

< 1.22.05.3 MEDIUM5 MEDIUM

An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows attackers to trigger slightly incorrect copying by constructing specific string objects. NOTE: the vendor states that this reported code behavior is "completely harmless."