# CVE-2026-27809: psd-tools: Compression module has unguarded zlib decompression, missing dimension validation, and hardening gaps

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T23:57:00.760Z
- Modified: 2026-07-13T07:26:55.444Z
- Also known as: GHSA-24p2-j2jr-386w, PYSEC-2026-2262
- Weaknesses: CWE-190, CWE-409, CWE-617, CWE-704, CWE-755, CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- psd-tools psd-tools: < 1.12.2
- psd-tools (PyPI): before 1.12.2
- psd-tools_project psd-tools: before 1.12.2

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/psd-tools/psd-tools/security/advisories/GHSA-24p2-j2jr-386w> (exploit, evidence, vendor-advisory, web)
- <https://github.com/psd-tools/psd-tools/commit/6c0a78f195b5942757886a1863793fd5946c1fb1> (fix, patch, web)
- <https://github.com/psd-tools/psd-tools/releases/tag/v1.12.2> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27809> (advisory)
- <https://github.com/psd-tools/psd-tools> (package)

## Sources

- CVE List: [CVE-2026-27809](https://www.cve.org/CVERecord?id=CVE-2026-27809), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-24p2-j2jr-386w](https://github.com/advisories/GHSA-24p2-j2jr-386w), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-27809](https://nvd.nist.gov/vuln/detail/CVE-2026-27809), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2262](https://osv.dev/vulnerability/PYSEC-2026-2262), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-27809 · Whole record: https://cve.day/CVE-2026-27809.json · Rebuilt by cve.day 2026-11-25T22:59:14.921Z
