CVE Vulnerabilities

CVE-2026-42310

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: May 09, 2026 | Modified: May 12, 2026
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
4 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

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
PillowPython4.2.0 (including)12.2.0 (excluding)
Red Hat AI Inference Server 3.3RedHatrhaiis/model-opt-cuda-rhel9:1778244559*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-rocm-rhel9:1778244531*
Red Hat AI Inference Server 3.3RedHatrhaiis/vllm-cuda-rhel9:1778274666*
PillowUbuntudevel*
PillowUbuntuesm-infra/xenial*
PillowUbuntujammy*
PillowUbuntunoble*
PillowUbuntuquesting*
PillowUbunturesolute*
PillowUbuntuupstream*

References