NumPy 1.9.x < 1.21.0 Buffer Overflow

medium Nessus Plugin ID 210056

Synopsis

The remote host is affected by a vulnerability.

Description

The version of NumPy installed on the remote host is prior to 1.21.0. It is, therefore, affected by 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

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.21.0 or later.

See Also

https://github.com/advisories/GHSA-6p56-wp2h-9hxr

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

Plugin Details

Severity: Medium

ID: 210056

File Name: numpy_CVE-2021-33430.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Published: 11/1/2024

Updated: 11/1/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 4.9

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

CVSS Score Source: CVE-2021-33430

CVSS v3

Risk Factor: Medium

Base Score: 5.3

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

Vulnerability Information

CPE: cpe:/a:numpy:numpy

Required KB Items: installed_sw/NumPy

Patch Publication Date: 12/17/2021

Vulnerability Publication Date: 12/17/2021

Reference Information

CVE: CVE-2021-33430

CWE: 120