---
id: CVE-2026-42310
title: >-
  Pillow: Pillow: Denial of Service via malicious PDF processing
  (CVE-2026-42310)
summary: >-
  A flaw was found in Pillow, a Python imaging library. A remote attacker could
  supply a specially crafted malicious PDF file, causing the application to hang
  indefinitely and consume 100% CPU. This vulnerability leads to a Denial of
  Service…
severity: medium
cvss: 4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'
cvssSource: vendor
cwe: CWE-835
vendor: Red Hat
product: Red Hat OpenShift AI (RHOAI)
affected:
  - exploit_intelligence
  - openshift_lightspeed
  - ai_inference_server
  - ansible_automation_platform 2
  - enterprise_linux_ai_rhel_ai 3
  - openshift_ai_rhoai
  - quay 3
  - ai_inference_server 3.3
  - ai_inference_server 3.4
patched:
  - ai_inference_server 3.3
  - ai_inference_server 3.4
published: '2026-05-09'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T04:04:20+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42310.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42310.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-42310'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2468461'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-42310'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42310'
  - url: >-
      https://github.com/python-pillow/Pillow/commit/3bf614e4b8615d0ce1d5039efaf6db447fe7c468
  - url: 'https://github.com/python-pillow/Pillow/pull/9519'
  - url: 'https://github.com/python-pillow/Pillow/releases/tag/12.2.0'
  - url: >-
      https://github.com/python-pillow/Pillow/security/advisories/GHSA-r73j-pqj5-w3x7
  - url: 'https://access.redhat.com/errata/RHSA-2026:16008'
  - url: 'https://access.redhat.com/errata/RHSA-2026:16030'
  - url: 'https://access.redhat.com/errata/RHSA-2026:16009'
  - url: 'https://access.redhat.com/errata/RHSA-2026:57387'
  - url: 'https://github.com/python-pillow/Pillow'
tags:
  - csaf
  - vex
  - red-hat
  - osv
  - pip
epss: 0.00171
epssPercentile: 0.06497
aliases:
  - GHSA-r73j-pqj5-w3x7
  - BIT-pillow-2026-42310
  - PYSEC-2026-2874
ecosystem: pip
scores:
  vendor: 4
  osv: 5.5
ingestedAt: '2026-07-13T18:58:02.525Z'
---

## Overview

A flaw was found in Pillow, a Python imaging library. A remote attacker could supply a specially crafted malicious PDF file, causing the application to hang indefinitely and consume 100% CPU. This vulnerability leads to a Denial of Service (DoS), making the application unresponsive.

## Vendor advisories

- **RHSA-2026:16008** · Red Hat · fixed in: Red Hat AI Inference Server 3.3 · released 2026-05-11 · [advisory](https://access.redhat.com/errata/RHSA-2026:16008)
- **RHSA-2026:16030** · Red Hat · fixed in: Red Hat AI Inference Server 3.3 · released 2026-05-11 · [advisory](https://access.redhat.com/errata/RHSA-2026:16030)
- **RHSA-2026:16009** · Red Hat · fixed in: Red Hat AI Inference Server 3.3 · released 2026-05-11 · [advisory](https://access.redhat.com/errata/RHSA-2026:16009)
- **RHSA-2026:57387** · Red Hat · fixed in: Red Hat AI Inference Server 3.4 · released 2026-08-20 · [advisory](https://access.redhat.com/errata/RHSA-2026:57387)
- **Red Hat VEX** · Moderate · affected: Exploit Intelligence, OpenShift Lightspeed, Red Hat AI Inference Server, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI), … · no fix planned: Exploit Intelligence, Red Hat Ansible Automation Platform 2, Red Hat Quay 3, OpenShift Lightspeed, … · updated 2026-10-09 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42310.json)

**Pillow: Pillow: Denial of Service via malicious PDF processing** — rated Moderate by Red Hat. Released 2026-05-09, updated 2026-10-09.

Affected:

- Exploit Intelligence
- OpenShift Lightspeed
- Red Hat AI Inference Server
- Red Hat Ansible Automation Platform 2
- Red Hat Enterprise Linux AI (RHEL AI) 3
- Red Hat OpenShift AI (RHOAI)
- Red Hat Quay 3

Fixed:

- Red Hat AI Inference Server 3.3
- Red Hat AI Inference Server 3.4

No fix planned:

- Exploit Intelligence
- Red Hat Ansible Automation Platform 2
- Red Hat Quay 3
- OpenShift Lightspeed
- Red Hat AI Inference Server
- Red Hat Enterprise Linux AI (RHEL AI) 3
- Red Hat OpenShift AI (RHOAI)

Not affected:

- Red Hat Ansible Automation Platform 2
- Red Hat OpenShift AI (RHOAI)

## Remediation

For more information visit https://access.redhat.com/errata/RHSA-2026:16008 https://access.redhat.com/errata/RHSA-2026:16008
For more information visit https://access.redhat.com/errata/RHSA-2026:16030 https://access.redhat.com/errata/RHSA-2026:16030
For more information visit https://access.redhat.com/errata/RHSA-2026:16009 https://access.redhat.com/errata/RHSA-2026:16009

## Package advisory (CVE-2026-42310)

Affected packages:

- `pillow >= 4.2.0, < 12.2.0`

Patched in:

- `pillow 12.2.0`

Source: https://osv.dev/vulnerability/GHSA-r73j-pqj5-w3x7
