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-2025-21338

CVE-2025-21338: Microsoft Office GDI+ RCE Vulnerability

CVE-2025-21338 is a remote code execution vulnerability in Microsoft Office GDI+ that enables attackers to execute arbitrary code. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-21338 Overview

CVE-2025-21338 is a remote code execution vulnerability affecting the Windows Graphics Device Interface Plus (GDI+) component. This vulnerability allows an attacker with local access to execute arbitrary code on affected systems by exploiting an integer overflow weakness (CWE-190) in the GDI+ graphics rendering subsystem. GDI+ is a core Windows component responsible for processing and rendering 2D graphics, images, and typography across the operating system and applications.

Critical Impact

Successful exploitation enables attackers to execute arbitrary code with the privileges of the compromised user, potentially leading to complete system compromise, data theft, or lateral movement across enterprise networks.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 22H2, 23H2, 24H2)
  • Microsoft Windows Server 2008, 2012, 2016, 2019, 2022, 2022 23H2, 2025
  • Microsoft Office (including iOS, Android, macOS, and Universal editions)

Discovery Timeline

  • January 14, 2025 - CVE-2025-21338 published to NVD
  • January 21, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21338

Vulnerability Analysis

This vulnerability resides in the GDI+ component, which is deeply integrated into the Windows graphics subsystem and utilized by numerous applications including Microsoft Office. The flaw stems from an integer overflow condition (CWE-190) that can be triggered during graphics processing operations.

When GDI+ processes specially crafted image data or graphics operations, insufficient validation of integer arithmetic operations can cause calculation results to wrap around beyond the maximum integer value. This overflow condition leads to improper memory allocation sizes or buffer boundary calculations, ultimately enabling memory corruption that can be leveraged for arbitrary code execution.

The local attack vector requires an attacker to either execute malicious code directly on the target system or convince a user to open a specially crafted file (such as a malicious image or document) that triggers the vulnerable GDI+ code path. Given the widespread use of GDI+ across Windows applications, attack surfaces include document files, image files, and any application rendering graphics through the GDI+ API.

Root Cause

The vulnerability is caused by an integer overflow weakness (CWE-190) in the GDI+ graphics processing routines. When mathematical operations on integer values used for memory allocation or buffer size calculations exceed the maximum representable value, the result wraps around to a small or negative number. This leads to undersized buffer allocations followed by out-of-bounds memory operations when the buffer is subsequently used, creating exploitable memory corruption conditions.

Attack Vector

The attack vector is local, requiring the attacker to have some level of access to the target system or the ability to deliver a malicious file to a user. Exploitation scenarios include:

  1. Malicious Document Attack: An attacker crafts a document containing embedded graphics that trigger the integer overflow when opened in Microsoft Office or other GDI+-dependent applications
  2. Malicious Image Files: Specially crafted image files (EMF, WMF, or other GDI+ supported formats) that exploit the vulnerability when rendered
  3. Local Privilege Escalation: An attacker with limited local access could exploit the vulnerability to escalate privileges by targeting system processes using GDI+

The vulnerability requires low privileges and no user interaction beyond opening the malicious content, making it particularly dangerous in enterprise environments where users routinely handle documents and images from external sources.

Detection Methods for CVE-2025-21338

Indicators of Compromise

  • Unusual crashes or unexpected termination of applications utilizing GDI+ rendering (Microsoft Office, image viewers, browsers)
  • Memory access violations or exception errors originating from gdiplus.dll or related graphics components
  • Suspicious image files or documents with malformed headers or unusually large dimension values designed to trigger integer overflows
  • Anomalous process behavior following document or image file access

Detection Strategies

  • Deploy endpoint detection rules monitoring for crashes in GDI+ related modules (gdiplus.dll, gdi32.dll) with memory corruption signatures
  • Implement file-based detection for documents and images with suspicious metadata or dimension values that could trigger integer overflows
  • Monitor application event logs for repeated graphics rendering failures or exception handling events
  • Utilize behavioral analysis to detect anomalous code execution patterns following file operations

Monitoring Recommendations

  • Enable enhanced logging for Windows Error Reporting to capture detailed crash information related to GDI+ components
  • Monitor for unusual process spawning patterns from applications that commonly use GDI+ (Office suite, image processing tools)
  • Implement network-level inspection for inbound documents and images targeting known vulnerable file format handlers
  • Review security event logs for patterns indicating exploitation attempts across multiple endpoints

How to Mitigate CVE-2025-21338

Immediate Actions Required

  • Apply Microsoft's January 2025 security updates immediately across all affected Windows and Office installations
  • Prioritize patching for systems handling untrusted documents or images, including mail servers, file servers, and user workstations
  • Implement application control policies to restrict execution of untrusted executables
  • Consider temporary restrictions on opening documents from untrusted sources until patches are deployed

Patch Information

Microsoft has released security updates addressing this vulnerability as part of their January 2025 Patch Tuesday release. Detailed patch information and download links are available through the Microsoft Security Response Center Advisory. Organizations should deploy these updates using standard Windows Update, Windows Server Update Services (WSUS), or Microsoft Endpoint Configuration Manager.

The patches address the integer overflow condition by implementing proper bounds checking and integer arithmetic validation in the affected GDI+ code paths.

Workarounds

  • Restrict or disable automatic preview of image files and documents in email clients and file browsers
  • Implement strict email attachment filtering to quarantine potentially malicious image and document file types
  • Consider deploying Protected View or Application Guard policies for Microsoft Office to isolate document rendering
  • Apply principle of least privilege to limit the impact of potential exploitation
bash
# Example: Configure Windows Defender Application Control policy
# to restrict GDI+ dependent applications from loading untrusted content
Set-ProcessMitigation -Name "WINWORD.EXE" -Enable DisableExtensionPoints,ForceRelocateImages
Set-ProcessMitigation -Name "EXCEL.EXE" -Enable DisableExtensionPoints,ForceRelocateImages
Set-ProcessMitigation -Name "POWERPNT.EXE" -Enable DisableExtensionPoints,ForceRelocateImages

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Office

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft CVE-2025-21338 Advisory
  • Related CVEs
  • CVE-2026-33114: Microsoft Office Word RCE Vulnerability

  • CVE-2026-26110: Microsoft Office RCE Vulnerability

  • CVE-2026-26109: Microsoft Excel RCE Vulnerability

  • CVE-2026-26113: Microsoft Office RCE 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