NVD Vulnerability Detail
Search Exploit, PoC
CVE-2026-55798
Summary

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.

Publication Date July 7, 2026, 4:17 a.m.
Registration Date July 8, 2026, 4:17 a.m.
Last Update July 8, 2026, 3:58 a.m.
CVSS3.1 : MEDIUM
スコア 4.5
Vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
攻撃元区分(AV) ローカル
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI)
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* 12.3.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
Python Software FoundationのPython PillowにおけるOS コマンドインジェクションの脆弱性
Title Python Software FoundationのPython PillowにおけるOS コマンドインジェクションの脆弱性
Summary

PillowはPythonの画像処理ライブラリです。バージョン12.3.0以前では、WindowsViewer.get_command()がファイルパスをエスケープせずにf文字列内に直接埋め込み、その結果をsubprocess.Popen(..., shell=True)に渡してcmd.exeのシェルコマンドを構築していました。これにより、ファイルパス内のシェルメタ文字を利用して任意のcmd.exeコマンドを注入される可能性がありました。この問題はバージョン12.3.0で修正されています。

Possible impacts ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアの一部が停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date July 6, 2026, midnight
Registration Date July 9, 2026, 10:54 a.m.
Last Update July 9, 2026, 10:54 a.m.
Affected System
Python Software Foundation
Python Pillow 12.3.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年07月09日]
  掲載
July 9, 2026, 10:54 a.m.