CVE-2026-27809
MEDIUM 6.8CVSS 4.0psd-tools: Compression module has unguarded zlib decompression, missing dimension validation, and hardening gaps
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.
- Published
- 26 Feb 2026
- Last modified
- 13 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-190CWE-409CWE-617CWE-704CWE-755CWE-789
- Also known as
- GHSA-24p2-j2jr-386wPYSEC-2026-2262
- Sources
- NVDJSONOSV GHSA-24p2-j2jr-386wJSONOSV PYSEC-2026-2262JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.8 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | psd-tools_project | psd-toolscpe:2.3:a:psd-tools_project:psd-tools:*:*:*:*:*:*:*:* |
< 1.12.2 | 1.12.2 |
| OSV | PyPI | psd-tools | < 1.12.2 | 1.12.2 |
References
- https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1 · Patch, WEB, FIX
- https://github.com/psd-tools/psd-tools/releases/tag/v1.12.2 · Product, Release Notes, WEB, ADVISORY
- https://github.com/psd-tools/psd-tools/security/advisories/GHSA-24p2-j2jr-386w · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-27809 · ADVISORY
- https://github.com/psd-tools/psd-tools · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 26 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2026)