numpy@1.22.1 vulnerabilities

Fundamental package for array computing in Python

Direct Vulnerabilities

Known vulnerabilities in the numpy package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • L
NULL Pointer Dereference

numpy is a fundamental package needed for scientific computing with Python.

Affected versions of this package are vulnerable to NULL Pointer Dereference due to missing return-value validation in the PyArray_DescrNew function, which may allow attackers to conduct Denial of Service attacks by repetitively creating and sort arrays.

Note: This may likely only happen if application memory is already exhausted, as it requires the newdescr object of the PyArray_DescrNew to evaluate to NULL.

How to fix NULL Pointer Dereference?

Upgrade numpy to version 1.22.2 or higher.

[0,1.22.2)