NULL Pointer Dereference Affecting numpy package, versions [0,1.22.2)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.15% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-NUMPY-2321964
  • published19 Dec 2021
  • disclosed19 Dec 2021
  • creditDaybreak2019

Introduced: 19 Dec 2021

CVE-2021-41495  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade numpy to version 1.22.2 or higher.

Overview

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.

CVSS Base Scores

version 3.1