{"id":"CVE-2026-27809","published":"2026-02-25T23:57:00Z","modified":"2026-02-26T15:17:34Z","title":"psd-tools: Compression module has unguarded zlib decompression, missing dimension validation, and hardening gaps","vendor":"psd-tools","product":"psd-tools","tier":"tail","description":{"text":"psd-tools is a Python package for working with Adobe Photoshop PSD files. Prior to version 1.12.2, when a PSD file contains malformed RLE-compressed image data (e.g. a literal run that extends past the expected row size), decode_rle() raises ValueError which propagated all the way to the user, crashing psd.composite() and psd-tools export. decompress() already had a fallback that replaces failed channels with black pixels when result is None, but it never triggered because the ValueError from decode_rle() was not caught. The fix in version 1.12.2 wraps the decode_rle() call in a try/except so the existing fallback handles the error gracefully.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00491,"percentile":0.43025,"provenance":"source"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"},{"id":"CWE-617","name":"Reachable Assertion"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"},{"id":"CWE-704","name":"Incorrect Type Conversion or Cast"}],"references":[{"url":"https://github.com/psd-tools/psd-tools/security/advisories/GHSA-24p2-j2jr-386w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1","tags":["x_refsource_MISC"]},{"url":"https://github.com/psd-tools/psd-tools/releases/tag/v1.12.2","tags":["x_refsource_MISC"]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":8.61},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"psd-tools","affectedVersions":[{"vendor":"psd-tools","product":"psd-tools","versions":["< 1.12.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-26T15:17:16.249743Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"psd-tools","vulnerableRanges":["<1.12.2"],"patched":["1.12.2"],"from":["GHSA-24p2-j2jr-386w","PYSEC-2026-2262"],"provenance":"source"}],"summary":{"text":"The psd-tools Python package, in its Compression module, fails to catch a ValueError raised by decode_rle() when a PSD file contains malformed RLE-compressed image data, so the error propagates and crashes psd.composite() and export. An attacker who can supply a crafted PSD file for processing by an affected version can trigger this crash, with no authentication or special configuration required beyond the application processing the file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:26Z"},"euvd":{"id":"EUVD-2026-8781","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-psd-tools-cve-2020-10571","parents":[{"from":"CVE-2020-10571","to":"CVE-2026-27809","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/psd_tools/compression/__init__.py","src/psd_tools/compression/_rle.pyx","src/psd_tools/compression/rle.py"],"commits":["https://github.com/psd-tools/psd-tools/commit/fd51f8b4a52bc9c1c06d1035dfdf2cd920e87074","https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1"],"basis":"shared function","functions":["decode","decompress"]}]}],"children":[{"from":"CVE-2026-27809","to":"CVE-2026-59991","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/psd_tools/compression/__init__.py"],"commits":["https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1","https://github.com/psd-tools/psd-tools/commit/a3d9a53ad51e667b5772a4f636ca6f2e16f4b271"],"basis":"shared function","functions":["decompress"]}]}],"packageHistory":[{"cve":"CVE-2020-10571","published":"2020-03-14","fixed":"1.9.4","kev":false},{"cve":"CVE-2026-27809","published":"2026-02-25","fixed":"1.12.2","kev":false},{"cve":"CVE-2026-49836","published":"2026-09-10","fixed":"1.17.1","kev":false,"link":{"from":"CVE-2026-27809","to":"CVE-2026-49836","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:psd-tools","fromFixed":"1.12.2","toFixed":"1.17.1","daysApart":197}]}},{"cve":"CVE-2026-59991","published":"2026-09-22","fixed":"1.17.4","kev":false}],"package":"PyPI:psd-tools"}}