RLE Compression Flaw in psd-tools Affects Adobe Photoshop File Handling
CVE-2026-27809
6.8MEDIUM
What is CVE-2026-27809?
The psd-tools Python package, used for processing Adobe Photoshop PSD files, is susceptible to an improper error handling vulnerability. When decoding RLE-compressed image data within a PSD file, malformed data can cause the decode_rle() function to raise a ValueError. This unhandled exception can lead to crashes during the psd.composite() rendering and export processes. A fix implemented in version 1.12.2 now appropriately wraps the decode_rle() call in a try/except block, allowing for a smoother fallback mechanism that replaces missing channels with black pixels, thus enhancing the robustness of the application.
Affected Version(s)
psd-tools < 1.12.2
