CVE-2026-59200

Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a crafted FlateDecode PDF stream to exhaust memory from a small file. This issue is fixed in version 12.3.0.
Configurations

Configuration 1 (hide)

cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*

History

24 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) Pillow es una biblioteca de imágenes de Python. Desde la versión 5.1.0 hasta la 12.3.0, PdfParser.PdfStream.decode() en PIL/PdfParser.py llama a zlib.decompress() con bufsize establecido al campo Length del flujo PDF sin limitar el tamaño de salida descomprimido, permitiendo que un flujo PDF FlateDecode manipulado agote la memoria desde un archivo pequeño. Este problema está solucionado en la versión 12.3.0.

Information

Published : 2026-07-14 17:17

Updated : 2026-10-24 21:10


NVD link : CVE-2026-59200

Mitre link : CVE-2026-59200

CVE.ORG link : CVE-2026-59200


JSON object : View

Products Affected

python

  • pillow
CWE
CWE-400

Uncontrolled Resource Consumption

CWE-770

Allocation of Resources Without Limits or Throttling