Bug 2497699

Summary: CVE-2026-55798 python-pillow: Pillow: Arbitrary command injection via shell metacharacters in file paths [fedora-all]
Product: [Fedora] Fedora Reporter: jkelly <jkelly>
Component: python-pillowAssignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: epel-packagers-sig, infra-sig, manisandro, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["8c9c8723-cf2a-4004-871c-827f76bd9750"]}
Fixed In Version: python-pillow-12.3.0-1.fc44 python-pillow-11.3.0-10.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-11 01:11:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2497462    

Description jkelly 2026-07-07 12:50:11 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Fedora Update System 2026-07-08 08:20:42 UTC
FEDORA-2026-d86f55c21a (python-pillow-11.3.0-9.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d86f55c21a

Comment 2 Fedora Update System 2026-07-08 08:20:54 UTC
FEDORA-2026-46c4892063 (python-pillow-12.3.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-46c4892063

Comment 3 Fedora Update System 2026-07-09 01:26:45 UTC
FEDORA-2026-d86f55c21a has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d86f55c21a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d86f55c21a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-07-09 01:45:36 UTC
FEDORA-2026-46c4892063 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-46c4892063`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-46c4892063

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-07-11 01:11:42 UTC
FEDORA-2026-46c4892063 (python-pillow-12.3.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2026-07-20 01:55:51 UTC
FEDORA-2026-fc2ded926e has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-fc2ded926e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-fc2ded926e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-07-21 01:16:11 UTC
FEDORA-2026-fc2ded926e (python-pillow-11.3.0-10.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.