CVE catalog

CVE-2026-55798

Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the

[CVE catalog]

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

Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. 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-1not affected
Debianpillowforky12.3.0-1not affected
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
CpepillowNot reported12.3.0fixed
PipPillowNot reported12.3.0fixed
PyPIpillowNot reported12.3.0fixed
CpepillowNot reported12.3.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianpillowsourcesidNot affectedunimportantNot reportedNot reported
DebianpillowsourceforkyNot affectedunimportantNot reportedNot reported
DebianpillowsourcetrixieNot affectedunimportantNot reportedNot reported
DebianpillowsourcebookwormNot affectedunimportantNot reportedNot reported
CpepillowcpeNot reported12.3.0Not reportedNot reportedNot reported
PipPillowpipNot reported12.3.0Not reportedNot reportedNot reported
PyPIpillowPyPINot reported12.3.0Not reportedGHSA-4X4J-2G7C-83W6Not reported
CpepillowcpeNot reported12.3.0Not reportedNVD-CVE-2026-55798Not reported

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