12.3.0 (2026-07-01)
Security
CVE 2026-59200: Prevent decompression bomb when parsing PDF
When parsing a PDF, PdfStream.decode() attempts to decompress data without any
limit. A default maximum of ImageFile.SAFEBLOCK has been added. PdfParser was
added in Pillow 5.1.0. Reported by redyank.
CVE 2026-55798: WindowsViewer.get_command injection
If an attacker has control over the path passed to
ImageShow.WindowsViewer.get_command(), and the result is executed by the user, the
attacker may be able to execute arbitrary shell commands. Reported by Bin Luo,
University of Electronic Science and Technology of China ().