CVE Vulnerabilities

CVE-2017-12852

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: Aug 15, 2017 | Modified: Apr 20, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
4 LOW
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation. An empty list or ndarray will stick into an infinite loop, which can allow attackers to cause a DoS attack.

Weakness

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Affected Software

NameVendorStart VersionEnd Version
NumpyNumpy*1.13.1 (including)
Python-numpyUbuntuartful*
Python-numpyUbuntubionic*
Python-numpyUbuntucosmic*
Python-numpyUbuntudisco*
Python-numpyUbuntuesm-infra/bionic*
Python-numpyUbuntuesm-infra/xenial*
Python-numpyUbuntutrusty*
Python-numpyUbuntuupstream*
Python-numpyUbuntuxenial*
Python-numpyUbuntuzesty*

References