Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. numpy
  4. ›
  5. CVE-2021-33430

CVE-2021-33430: NumPy Buffer Overflow (Disputed)

January 7, 2022 (updated September 26, 2024)

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.

References

  • github.com/advisories/GHSA-6p56-wp2h-9hxr
  • github.com/numpy/numpy
  • github.com/numpy/numpy/commit/ae317fd9ff3e79c0eac357d723bfc29cbd625f2e
  • github.com/numpy/numpy/issues/18939
  • github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-854.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-33430

Code Behaviors & Features

Detect and mitigate CVE-2021-33430 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.9.0 before 1.21

Fixed versions

  • 1.21

Solution

Upgrade to version 1.21 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

pypi/numpy/CVE-2021-33430.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.