CVE catalog

CVE-2026-59203

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 t

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.40% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpillowsid13.0.0-1fixed
Debianpillowforky12.3.0-1fixed
Debianpillowtrixie11.1.0-5+deb13u4not affected
Debianpillowtrixie-security11.1.0-5+deb13u3not affected
Debianpillowbookworm9.4.0-1.1+deb12u1not affected
Debianpillowbookworm-security9.4.0-1.1+deb12u1not affected
PippillowNot reported12.3.0fixed
PyPIpillowNot reported12.3.0fixed
Ubuntupillow26.0411.3.0-1ubuntu1vulnerable
Ubuntupillow26.0411.3.0-1ubuntu2vulnerable
Ubuntupillow26.0412.0.0-1ubuntu1vulnerable
Ubuntupillow26.0412.1.1-1ubuntu1vulnerable
Ubuntupillow26.0412.1.1-2ubuntu1vulnerable
Ubuntupillow26.0412.1.1-2ubuntu1.1vulnerable
Ubuntupillow26.0412.1.1-2ubuntu1.2vulnerable
Ubuntupillow26.0412.1.1-2ubuntu1.3vulnerable
CpepillowNot reported12.3.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpillowsourcesid12.3.0-1not yet assignedNot reported[1142274]
Debianpillowsourceforky12.3.0-1not yet assignedNot reported[1142274]
DebianpillowsourcetrixieNot affectedunimportantNot reported[1142274]
DebianpillowsourcebookwormNot affectedunimportantNot reported[1142274]
PippillowpipNot reported12.3.0Not reportedNot reportedNot reported
PyPIpillowPyPINot reported12.3.0Not reportedGHSA-PG7V-JWJ7-P798Not reported
CpepillowcpeNot reported12.3.0Not reportedNVD-CVE-2026-59203Not reported

[Debian bug #1142274]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-pil]Not affected

    Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

  • [python3-pil.imagetk]Not affected

    Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

  • [python-pil-doc]Not affected

    Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · all · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · all · bookworm

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Not affected

      nvd · pillow · debian · bookworm

Observed:

References