NumPy < 1.22.2 Null Pointer Dereference

medium Nessus Plugin ID 210057

Synopsis

The remote host is affected by a vulnerability.

Description

The version of NumPy installed on the remote host is prior to 1.22.2. It is, therefore, affected by a Null Pointer Dereference vulnerability exists in numpy.sort in NumPy prior to 1.22.2 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

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to NumPy version 1.22.2 or later.

See Also

https://github.com/advisories/GHSA-5545-2q6w-2gh6

https://github.com/numpy/numpy/issues/19038

Plugin Details

Severity: Medium

ID: 210057

File Name: numpy_CVE-2021-41495.nasl

Version: 1.2

Type: local

Agent: windows, macosx, unix

Published: 11/1/2024

Updated: 11/4/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Low

Base Score: 3.5

Temporal Score: 2.7

Vector: CVSS2#AV:N/AC:M/Au:S/C:N/I:N/A:P

CVSS Score Source: CVE-2021-41495

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

Vector: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:numpy:numpy

Required KB Items: installed_sw/NumPy

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/17/2021

Vulnerability Publication Date: 12/17/2021

Reference Information

CVE: CVE-2021-41495

CWE: 476