Advisory

GHSA-6p56-wp2h-9hxr

Also known as: CVE-2021-33430, PYSEC-2021-854

Summary

NumPy Buffer Overflow (Disputed)

Details

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 vulnerability; 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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-01-07 00:09 UTC
Modified
2024-09-26 15:01 UTC

Affected packages and fixes

numpy

PyPI · All systems

Affected

  • introduced 1.9.0, fixed 1.21 (ecosystem)

Fixed versions

1.21

Fix

  • Fixed version 1.21
    pip install --upgrade numpy==1.21

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences