Intel

AIKIDO-2025-10325

numpy is vulnerable to Heap Buffer Overflow

Heap Buffer Overflow Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

31

Low Risk

This Affects:

PYTHONnumpy
2.2.0 - 2.2.5
Fixed in 2.2.6

TL;DR

Affected versions of this package are vulnerable to a heap buffer overflow when calling numpy.strings.find on specific strings. The issue stems from an incorrect multiplication by sizeof(npy_ucs4), which leads to improper memory allocation and potential out-of-bounds access. This flaw can result in application crashes or could potentially be exploited to achieve arbitrary code execution.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

numpy is vulnerable to Heap Buffer Overflow in versions 2.2.0 - 2.2.5.

How to fix this

Upgrade the numpy library to a patch version.