The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-27809

CVE-2026-27809: psd-tools DoS Vulnerability in Python

CVE-2026-27809 is a denial of service flaw in psd-tools that crashes applications when processing malformed PSD files with invalid RLE-compressed data. This post covers the technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-27809 Overview

CVE-2026-27809 is a denial of service vulnerability in psd-tools, 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), the decode_rle() function raises a ValueError that propagates all the way to the user, crashing psd.composite() and psd-tools export operations. This vulnerability allows attackers to craft malicious PSD files that can crash applications relying on this library.

Critical Impact

Applications processing user-supplied PSD files are vulnerable to denial of service attacks through malformed RLE-compressed image data, causing unhandled exceptions and application crashes.

Affected Products

  • psd-tools versions prior to 1.12.2
  • Applications using psd-tools for PSD file processing
  • Python-based image processing pipelines handling Photoshop files

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27809 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27809

Vulnerability Analysis

This vulnerability stems from improper exception handling in the RLE (Run-Length Encoding) decompression routine. When processing PSD files with malformed RLE-compressed image data, specifically when a literal run extends beyond the expected row size, the decode_rle() function throws a ValueError. The decompress() function already had a fallback mechanism designed to replace failed channels with black pixels when the result is None, but this fallback never triggered because the ValueError from decode_rle() was not caught.

The vulnerability is classified under CWE-190 (Integer Overflow or Wraparound), as the boundary condition error in processing RLE data can lead to unexpected behavior when handling malformed compression headers that specify incorrect data lengths.

Root Cause

The root cause is insufficient exception handling in the decompression pipeline. The existing fallback mechanism that replaces failed channels with black pixels was designed to handle None results, but the code path for ValueError exceptions was not covered. This meant that any malformed RLE data that caused decode_rle() to raise an exception would crash the entire application rather than gracefully degrading to the fallback behavior.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious PSD file with intentionally malformed RLE-compressed image data. When a victim application processes this file using psd-tools, the following sequence occurs:

  1. The application loads the malicious PSD file using psd-tools
  2. During image compositing or export, the library attempts to decompress RLE-encoded channels
  3. The malformed RLE data causes decode_rle() to encounter a boundary condition error
  4. A ValueError is raised and propagates up the call stack
  5. The application crashes without proper error handling

The fix in version 1.12.2 wraps the decode_rle() call in a try/except block so the existing fallback handles the error gracefully by replacing the corrupted channel with black pixels.

python
# Security patch in src/psd_tools/__init__.py - Fix compression security issues (GHSA-24p2-j2jr-386w) (#549)

from psd_tools.api.psd_image import PSDImage
from psd_tools.compression import PSDDecompressionWarning
from psd_tools.version import __version__

__all__ = ["PSDImage", "PSDDecompressionWarning", "__version__"]

Source: GitHub Commit Details

The patch also introduces PSDDecompressionWarning to provide applications with visibility into decompression failures without crashing.

Detection Methods for CVE-2026-27809

Indicators of Compromise

  • Application logs showing ValueError exceptions originating from decode_rle() function
  • Unexpected crashes in Python applications during PSD file processing
  • Error messages referencing RLE decompression failures in psd-tools stack traces

Detection Strategies

  • Monitor application logs for unhandled ValueError exceptions during PSD file operations
  • Implement file integrity checks for PSD files before processing to identify potentially malformed compression headers
  • Deploy application crash monitoring to detect denial of service attempts targeting file processing functionality
  • Check installed psd-tools package version using pip show psd-tools to identify vulnerable installations

Monitoring Recommendations

  • Enable verbose logging for image processing pipelines to capture decompression warnings and errors
  • Set up alerting for repeated crashes in file processing services handling user-uploaded PSD files
  • Monitor for the new PSDDecompressionWarning after upgrading to help identify potentially malicious files

How to Mitigate CVE-2026-27809

Immediate Actions Required

  • Upgrade psd-tools to version 1.12.2 or later immediately using pip install --upgrade psd-tools
  • Review application code to ensure proper exception handling around PSD file processing operations
  • Implement input validation and file scanning for user-uploaded PSD files
  • Consider sandboxing PSD processing operations to limit crash impact

Patch Information

The vulnerability is fixed in psd-tools version 1.12.2. The patch wraps the decode_rle() call in a try/except block, allowing the existing fallback mechanism to handle decompression errors gracefully by replacing failed channels with black pixels. For detailed patch information, see the GitHub Security Advisory GHSA-24p2-j2jr-386w and the GitHub Release v1.12.2.

Workarounds

  • Wrap all psd-tools operations in application-level try/except blocks to prevent crashes from propagating
  • Implement a file validation layer that rejects PSD files with suspicious compression characteristics before processing
  • Run PSD processing in isolated worker processes that can be safely restarted after crashes
bash
# Configuration example
# Upgrade psd-tools to patched version
pip install --upgrade psd-tools>=1.12.2

# Verify installed version
pip show psd-tools | grep Version

# Update project dependencies
pip install "cython>=3.2.4" "setuptools>=82.0.0"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPsd Tools

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Commit Details

  • GitHub Release v1.12.2

  • GitHub Security Advisory GHSA-24p2-j2jr-386w
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English