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-26955

CVE-2026-26955: FreeRDP Buffer Overflow Vulnerability

CVE-2026-26955 is a heap buffer overflow flaw in FreeRDP that allows malicious RDP servers to trigger memory corruption and achieve code execution. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-26955 Overview

CVE-2026-26955 is a heap buffer overflow vulnerability in FreeRDP, a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, a malicious RDP server can trigger a heap buffer overflow in FreeRDP clients using the GDI surface pipeline (e.g., xfreerdp) by sending an RDPGFX ClearCodec surface command with an out-of-bounds destination rectangle.

The gdi_SurfaceCommand_ClearCodec() handler does not call is_within_surface() to validate the command rectangle against the destination surface dimensions, allowing attacker-controlled cmd->left/cmd->top (and subcodec rectangle offsets) to reach image copy routines that write into surface->data without bounds enforcement.

Critical Impact

The out-of-bounds write corrupts an adjacent gdiGfxSurface struct's codecs* pointer with attacker-controlled pixel data. Corruption of codecs* is sufficient to reach an indirect function pointer call (NSC_CONTEXT.decode at nsc.c:500) on a subsequent codec command, providing full instruction pointer (RIP) control as demonstrated in the exploitability harness.

Affected Products

  • FreeRDP versions prior to 3.23.0
  • FreeRDP clients using GDI surface pipeline (e.g., xfreerdp)
  • Applications built on FreeRDP libraries with RDPGFX ClearCodec support

Discovery Timeline

  • 2026-02-25 - CVE-2026-26955 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-26955

Vulnerability Analysis

This vulnerability (CWE-787: Out-of-bounds Write) exists in the ClearCodec surface command handler within FreeRDP's GDI graphics pipeline. The root issue stems from insufficient validation of destination rectangle coordinates provided by an RDP server before performing memory write operations.

When processing RDPGFX ClearCodec commands, the client receives destination coordinates (cmd->left, cmd->top) and subcodec rectangle offsets from the server. These values are used to calculate write positions within the surface->data buffer. However, the vulnerable code path fails to verify that the calculated destination positions fall within the actual surface boundaries.

The exploitation chain involves multiple stages: first, the attacker sends a crafted ClearCodec command with out-of-bounds coordinates that causes pixel data to be written beyond the allocated surface buffer. This out-of-bounds write precisely corrupts the codecs* pointer in an adjacent gdiGfxSurface structure. On a subsequent codec command, the corrupted pointer leads to an indirect function call through NSC_CONTEXT.decode, giving the attacker full control over the instruction pointer (RIP).

Root Cause

The vulnerability originates in libfreerdp/codec/clear.c where destination bounds checking incorrectly compared against source dimensions (nWidth, nHeight) instead of destination surface dimensions (nDstWidth, nDstHeight). This logic error allowed malicious servers to specify coordinates that exceed the actual destination buffer size while still passing the incorrect validation checks.

Attack Vector

This is a network-based attack requiring user interaction. An attacker operating a malicious RDP server can exploit this vulnerability when a victim connects using a vulnerable FreeRDP client. The attack flow involves:

  1. Victim initiates RDP connection to attacker-controlled server
  2. Malicious server sends crafted RDPGFX ClearCodec surface command with out-of-bounds destination rectangle
  3. Client processes command without proper bounds validation
  4. Heap buffer overflow corrupts adjacent gdiGfxSurface structure
  5. Subsequent codec command triggers indirect call through corrupted function pointer
  6. Attacker achieves arbitrary code execution on client system
c
// Security patch from libfreerdp/codec/clear.c
// Source: https://github.com/FreeRDP/FreeRDP/commit/7d8fdce2d0ef337cb86cb37fc0c436c905e04d77
 
 		const UINT32 nXDstRel = nXDst + xStart;
 		const UINT32 nYDstRel = nYDst + yStart;
-		if (1ull * nXDstRel + width > nWidth)
+		if (1ull * nXDstRel + width > nDstWidth)
 		{
-			WLog_ERR(TAG, "nXDstRel %" PRIu16 " + width %" PRIu16 " > nWidth %" PRIu32 "", xStart,
-			         width, nWidth);
+			WLog_ERR(TAG, "nXDstRel %" PRIu32 " + width %" PRIu16 " > nDstWidth %" PRIu32 "",
+			         nXDstRel, width, nDstWidth);
 			return FALSE;
 		}
-		if (1ull * nYDstRel + height > nHeight)
+		if (1ull * nYDstRel + height > nDstHeight)
 		{
-			WLog_ERR(TAG, "nYDstRel %" PRIu16 " + height %" PRIu16 " > nHeight %" PRIu32 "", yStart,
-			         height, nHeight);
+			WLog_ERR(TAG, "nYDstRel %" PRIu32 " + height %" PRIu16 " > nDstHeight %" PRIu32 "",
+			         nYDstRel, height, nDstHeight);
 			return FALSE;
 		}

The patch corrects the bounds validation by checking destination coordinates against actual destination surface dimensions (nDstWidth, nDstHeight) rather than source dimensions.

Detection Methods for CVE-2026-26955

Indicators of Compromise

  • Unexpected crashes or memory corruption in FreeRDP client processes (xfreerdp, wlfreerdp)
  • RDP connections to untrusted or unknown servers followed by client abnormal termination
  • Heap corruption signatures in crash dumps involving gdiGfxSurface structures
  • Suspicious RDPGFX ClearCodec surface commands with large offset values in network traffic

Detection Strategies

  • Monitor for FreeRDP client crashes with heap corruption indicators, particularly in GDI surface handling code paths
  • Implement network inspection for RDP traffic containing anomalous RDPGFX graphics commands with out-of-bounds rectangle coordinates
  • Deploy endpoint detection rules to identify exploitation attempts targeting gdi_SurfaceCommand_ClearCodec() function
  • Analyze RDP session metadata for connections to unrecognized or suspicious RDP servers

Monitoring Recommendations

  • Enable verbose logging in FreeRDP clients to capture graphics command processing errors
  • Configure crash dump collection for FreeRDP processes to facilitate forensic analysis
  • Implement network segmentation and monitoring for outbound RDP connections to non-corporate resources
  • Deploy SentinelOne Singularity platform for real-time memory protection and behavioral analysis of RDP client processes

How to Mitigate CVE-2026-26955

Immediate Actions Required

  • Upgrade FreeRDP to version 3.23.0 or later immediately on all systems
  • Restrict RDP client usage to connect only to trusted, verified RDP servers
  • Implement network controls to prevent connections to untrusted external RDP endpoints
  • Review and audit recent RDP connection logs for suspicious server connections

Patch Information

The vulnerability has been patched in FreeRDP version 3.23.0. The fix is available in commit 7d8fdce2d0ef337cb86cb37fc0c436c905e04d77. Users should upgrade to the patched version to receive the security fix that properly validates destination rectangle bounds against actual surface dimensions.

For detailed information, refer to the GitHub Security Advisory GHSA-mr6w-ch7c-mqqj.

Workarounds

  • Avoid connecting to untrusted or unknown RDP servers until the patch is applied
  • Disable GDI surface pipeline if feasible (use alternative rendering backends if available)
  • Implement network-level controls to whitelist approved RDP server destinations
  • Run FreeRDP clients in sandboxed environments to limit potential impact of exploitation
bash
# Verify FreeRDP version to ensure patched version is installed
xfreerdp --version

# Update FreeRDP on Debian/Ubuntu systems
sudo apt update && sudo apt install freerdp2-x11

# Update FreeRDP on RHEL/CentOS systems
sudo dnf update freerdp

# Build from source with patched version
git clone https://github.com/FreeRDP/FreeRDP.git
cd FreeRDP
git checkout 3.23.0
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
sudo cmake --install build

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechFreerdp

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33982: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33984: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33986: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33987: FreeRDP Buffer Overflow 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