Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-25990

CVE-2026-25990: Pillow Buffer Overflow Vulnerability

CVE-2026-25990 is a buffer overflow vulnerability in Pillow Python imaging library that triggers an out-of-bounds write via crafted PSD images. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 13, 2026

CVE-2026-25990 Overview

CVE-2026-25990 is an out-of-bounds write vulnerability affecting Pillow, the popular Python imaging library. The flaw exists in versions 10.3.0 through 12.1.0 and can be triggered when processing specially crafted PSD (Adobe Photoshop Document) image files. This vulnerability allows attackers to corrupt memory by exploiting improper validation of tile extents during image decoding, potentially leading to arbitrary code execution or application crashes.

Critical Impact

Attackers can exploit this vulnerability by delivering a malicious PSD file to applications using vulnerable Pillow versions, potentially achieving remote code execution or causing denial of service through memory corruption.

Affected Products

  • Pillow versions 10.3.0 through 12.1.0
  • Python applications utilizing vulnerable Pillow versions for image processing
  • Web applications and services that process user-uploaded PSD images

Discovery Timeline

  • 2026-02-11 - CVE CVE-2026-25990 published to NVD
  • 2026-02-12 - Last updated in NVD database

Technical Details for CVE-2026-25990

Vulnerability Analysis

This out-of-bounds write vulnerability (CWE-787) occurs within Pillow's PSD image decoder when processing tile extents. The vulnerability stems from insufficient validation of tile offset values during image decoding or encoding operations. When a specially crafted PSD file contains negative x or y offset values in tile extent definitions, the decoder fails to properly validate these boundaries before writing data to memory buffers.

The attack can be initiated remotely via network without requiring any privileges or user interaction. Applications that automatically process uploaded images or render PSD files from untrusted sources are particularly at risk. Successful exploitation could result in high impact to confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is improper input validation in the tile extent processing code path. Prior to the fix, Pillow's PSD decoder did not verify that tile extents use non-negative x and y offsets before performing write operations. This oversight allowed malformed PSD files to specify negative offsets that could cause writes outside the intended memory buffer boundaries.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can craft a malicious PSD file with invalid tile extents containing negative offset values. When this file is opened by an application using a vulnerable Pillow version, the out-of-bounds write is triggered during the image decoding process. Attack scenarios include:

  1. Uploading malicious PSD files to web applications with image processing functionality
  2. Sending crafted images via email or messaging platforms that auto-render previews
  3. Hosting malicious images on websites visited by applications that fetch and process remote images

The security patch adds validation to check that tile extents do not use negative x or y offsets:

text
+12.1.1
+------
+
+Security
+========
+
+:cve:`2021-25289`: Fix OOB write with invalid tile extents
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Check that tile extents do not use negative x or y offsets when decoding or encoding,
+and raise an error if they do, rather than allowing an OOB write.
+
+An out-of-bounds write may be triggered when opening a specially crafted PSD image.
+This only affects Pillow >= 10.3.0. Reported by
+`Yarden Porat <https://github.com/yardenporat353>`__.
+
+Other changes
+=============
+
+Patch libavif for svt-av1 4.0 compatibility
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+A patch has been added to ``depends/install_libavif.sh``, to allow libavif 1.3.0 to be
+compatible with the recently released svt-av1 4.0.0.

Source: GitHub Commit Changes

Detection Methods for CVE-2026-25990

Indicators of Compromise

  • Unexpected application crashes when processing PSD image files
  • Memory corruption errors or segmentation faults in Python processes using Pillow
  • Anomalous PSD files with unusual or malformed tile extent metadata
  • Suspicious network activity involving PSD file transfers to image processing endpoints

Detection Strategies

  • Monitor for crashes in applications processing PSD files and analyze crash dumps for out-of-bounds write patterns
  • Implement file integrity monitoring on image upload directories to detect potentially malicious PSD files
  • Use SentinelOne's behavioral AI to detect memory corruption exploitation attempts during image processing operations
  • Deploy application-level logging to track PSD file processing events and correlate with system anomalies

Monitoring Recommendations

  • Enable enhanced logging for image processing operations in web applications
  • Configure alerts for unusual error rates in services handling image conversions
  • Monitor Python application memory usage patterns for signs of memory corruption
  • Implement network traffic analysis to detect unusual patterns of PSD file uploads

How to Mitigate CVE-2026-25990

Immediate Actions Required

  • Upgrade Pillow to version 12.1.1 or later immediately across all environments
  • Audit applications to identify all instances using Pillow versions 10.3.0 through 12.1.0
  • Implement input validation to restrict processing of PSD files from untrusted sources until patched
  • Review dependency manifests (requirements.txt, setup.py, pyproject.toml) to ensure version constraints exclude vulnerable releases

Patch Information

The vulnerability is fixed in Pillow version 12.1.1. The patch implements validation checks that ensure tile extents do not use negative x or y offsets during decoding or encoding operations. If invalid offsets are detected, an error is raised instead of allowing the out-of-bounds write to occur.

For detailed patch information, see the GitHub Security Advisory and the security commit.

Workarounds

  • Disable PSD file processing entirely in applications where this format is not required
  • Implement strict file type validation to reject PSD files from untrusted sources
  • Deploy web application firewalls (WAF) with rules to block PSD file uploads pending patch deployment
  • Isolate image processing services in sandboxed environments to limit exploitation impact
bash
# Configuration example
# Upgrade Pillow to the patched version
pip install --upgrade "Pillow>=12.1.1"

# Verify installed version
python -c "import PIL; print(PIL.__version__)"

# Pin version in requirements.txt
echo "Pillow>=12.1.1" >> requirements.txt

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPillow

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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-787
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory

  • Openwall OSS-Security Post
  • Related CVEs
  • CVE-2026-40192: Pillow FITS DoS Vulnerability
Default Legacy - Prefooter | 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