p PatchFirst

CVE-2026-59203

CVE-2026-59203 · Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.

CVSS 5.3 · Medium · EPSS 0.4% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • pillow

    Versions
    • >= 12.0.0, < 12.3.0: Affected

    No fix published

  • pillow Debian:14

    Versions
    • 11.1.0-5
    • 11.2.1-1
    • 11.3.0-1
    • 12.0.0-1
    • 12.1.0-1
    • 12.1.1-1
    • 12.1.1-2
    • 12.2.0-1
    Affected ranges
    • ECOSYSTEM: < 12.3.0-1

    Update to 12.3.0-1

  • pillow PyPI

    Versions
    • 12.0.0
    • 12.1.0
    • 12.1.1
    • 12.2.0
    Affected ranges
    • ECOSYSTEM: ≥ 12.0.0, < 12.3.0

    Update to 12.3.0

  • pillow Ubuntu:26.04:LTS

    Versions
    • 11.3.0-1ubuntu1
    • 11.3.0-1ubuntu2
    • 12.0.0-1ubuntu1
    • 12.1.1-1ubuntu1
    • 12.1.1-2ubuntu1
    • 12.1.1-2ubuntu1.1
    • 12.1.1-2ubuntu1.2
    • 12.1.1-2ubuntu1.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →