A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-40033

CVE-2026-40033: FreeRDP Buffer Overflow Vulnerability

CVE-2026-40033 is a heap buffer overflow vulnerability in FreeRDP that allows remote attackers to write out-of-bounds heap memory. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 28, 2026

CVE-2026-40033 Overview

CVE-2026-40033 is a heap-buffer-overflow vulnerability in FreeRDP versions prior to 3.26.0. The flaw resides in the gdi_CacheToSurface function, where rectangle validation clamps coordinates to UINT16_MAX but executes copy operations using unclamped cache entry dimensions. A malicious Remote Desktop Protocol (RDP) server can exploit this mismatch to trigger large out-of-bounds heap writes against a connecting client. Successful exploitation can lead to remote code execution or client process crash. The vulnerability is tracked under [CWE-122] Heap-Based Buffer Overflow and affects all FreeRDP deployments that connect to untrusted RDP servers.

Critical Impact

A malicious RDP server can write attacker-controlled data outside heap buffer boundaries on the client, enabling remote code execution against any user who connects.

Affected Products

  • FreeRDP versions prior to 3.26.0
  • All client applications statically or dynamically linked against vulnerable FreeRDP libraries
  • Downstream distributions packaging FreeRDP below 3.26.0

Discovery Timeline

  • 2026-05-26 - CVE-2026-40033 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-40033

Vulnerability Analysis

The defect exists in the GDI surface caching path of FreeRDP. The gdi_CacheToSurface routine handles server-issued orders that copy bitmap data from a cache entry into a destination surface. Before performing the copy, the code validates the destination rectangle and clamps its coordinates to UINT16_MAX. However, the byte-count used for the actual memory write derives from the cache entry's stored width and height, which the validation step never bounds. A malicious server crafts a cache entry whose dimensions exceed the destination rectangle, and the resulting copy overflows the heap allocation backing the surface. Because the attacker controls both the source bytes and the overflow length, the primitive is suitable for memory corruption leading to control-flow hijacking on the client.

Root Cause

The root cause is inconsistent boundary enforcement between validation and execution. Rectangle coordinates pass through a clamping check, but the subsequent copy uses unclamped cache dimensions. This asymmetry between checked and used values is a classic validation-bypass pattern, producing a heap-based buffer overflow [CWE-122].

Attack Vector

Exploitation requires a victim to initiate an RDP session to an attacker-controlled or compromised server. User interaction is required to initiate the connection, after which the malicious server sends crafted cache-to-surface orders during normal protocol exchange. No client-side authentication weakness is required, and the vulnerability is reachable over any network path that the client uses to reach the server.

cpp
// Excerpt from the upstream fix merge (PR #12635) in client/SDL/SDL3/sdl_context.cpp
		case SDL_EVENT_WINDOW_MOUSE_ENTER:
			return restoreCursor();
		case SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED:
+			if (!resizeToScale(window))
+				return false;
			if (isConnected())
			{
				if (!window->fill())

Source: FreeRDP fix commit 23b36cd

Detection Methods for CVE-2026-40033

Indicators of Compromise

  • FreeRDP client processes (xfreerdp, wlfreerdp, sdl-freerdp) crashing with heap corruption signatures shortly after connecting to a remote host
  • Outbound RDP sessions (TCP 3389) initiated to untrusted or newly observed external destinations
  • Anomalous child processes spawned by FreeRDP client binaries following an RDP session
  • Core dumps or crash reports referencing gdi_CacheToSurface in the call stack

Detection Strategies

  • Inventory installed FreeRDP versions across endpoints and flag any release below 3.26.0
  • Monitor for FreeRDP client crashes by collecting application error events and signal-11 terminations
  • Inspect outbound RDP connections from workstations to non-corporate IP ranges and apply allow-listing for known servers
  • Hunt for post-exploitation behavior such as FreeRDP processes writing executables or invoking shells

Monitoring Recommendations

  • Forward endpoint process telemetry and crash events into a centralized data lake for correlation across hosts
  • Apply behavioral detections that flag memory corruption patterns originating from RDP client binaries
  • Track FreeRDP version drift over time and alert on hosts that fall out of patch compliance

How to Mitigate CVE-2026-40033

Immediate Actions Required

  • Upgrade FreeRDP and all dependent packages to version 3.26.0 or later on every endpoint and server that initiates RDP sessions
  • Restrict outbound RDP traffic to a vetted list of internal destinations using host or network firewalls
  • Audit third-party applications that bundle FreeRDP libraries and apply vendor updates as they become available
  • Educate users to avoid connecting to RDP endpoints received via email, chat, or untrusted links

Patch Information

The vulnerability is fixed in FreeRDP 3.26.0. The upstream fix is delivered through merge commit 23b36cd00ebf0ccd97750fcdbc9aa2f362352da7 and documented in the GitHub Security Advisory GHSA-p6r2-4hgm-m6ff. Additional technical context is available in the VulnCheck advisory.

Workarounds

  • Block outbound TCP 3389 at the perimeter except to explicitly approved corporate RDP gateways
  • Route RDP sessions through an authenticated RDP gateway or jump host that brokers connections to known-good servers
  • Disable or remove FreeRDP clients on systems that do not require RDP connectivity
bash
# Verify the installed FreeRDP version and upgrade where required
xfreerdp --version

# Debian/Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade freerdp2-x11 freerdp3-x11

# Fedora/RHEL
sudo dnf upgrade freerdp

# Restrict outbound RDP at the host firewall (Linux nftables example)
sudo nft add rule inet filter output tcp dport 3389 ip daddr != 10.0.0.0/8 drop

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

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • VulnCheck Advisory on FreeRDP
  • Vendor Resources
  • GitHub Commit for FreeRDP

  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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