CVE-2026-27809
published medium CVSS 4.0 · 6.8psd-tools: Compression module has unguarded zlib decompression, missing dimension validation, and hardening gaps
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| psd-tools | — | psd-tools< 1.12.2 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| psd-tools | psd-tools | < 1.12.2 (affected) | GitHub_M · cna |
Weaknesses
6- CWE-409 CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
- CWE-789 CWE-789: Memory Allocation with Excessive Size Value
- CWE-617 CWE-617: Reachable Assertion
- CWE-190 CWE-190: Integer Overflow or Wraparound
- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
- CWE-704 CWE-704: Incorrect Type Conversion or Cast
References
3Provider assertions
2GitHub_M · cna
psd-tools: Compression module has unguarded zlib decompression, missing dimension validation, and hardening gaps
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 10e51fd6a3013919ffe11a5ee29c557bd1da8a86ccbc396427e71408642431ee
- Ingested
- 23 Sep 2026, 09:07:57 UTC
- Source record
- Official CVE record