Security mailing lists by PureSourceCode

CVE-2026-55798

MEDIUM 4.5CVSS 3.1

Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path

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.

Published
6 Jul 2026
Last modified
25 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-78
Also known as
BIT-pillow-2026-55798GHSA-4x4j-2g7c-83w6PYSEC-2026-2257
Sources
NVDJSONOSV GHSA-4x4j-2g7c-83w6JSONOSV PYSEC-2026-2257JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
OSV GitHub CVSS 3.1 MEDIUM 4.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
OSV PyPA CVSS 3.1 MEDIUM 4.5 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python pillow
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
< 12.3.0 12.3.0
OSV PyPI pillow < 12.3.0 12.3.0

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 6 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.