Advisory

GHSA-f7c7-j99h-c22f

Also known as: CVE-2021-41496, PYSEC-2021-857

Summary

Buffer Copy without Checking Size of Input in NumPy

Details

Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-08 00:00 UTC
Modified
2023-11-08 04:06 UTC

Affected packages and fixes

numpy

PyPI · All systems

Affected

  • introduced 0, fixed 1.19 (ecosystem)

Fixed versions

1.19

Fix

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

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