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

CVE-2026-31897: FreeRDP Use-After-Free Vulnerability

CVE-2026-31897 is a use-after-free vulnerability in FreeRDP that causes out-of-bounds reads in bitmap decompression. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: March 20, 2026

CVE-2026-31897 Overview

CVE-2026-31897 is an out-of-bounds read vulnerability affecting FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability exists in the freerdp_bitmap_decompress_planar function within libfreerdp/codec/planar.c. When SrcSize is 0 and pSrcData is non-NULL, the function dereferences *srcp (which points to pSrcData) without first verifying that SrcSize >= 1, resulting in a one-byte read past the end of the source buffer.

Critical Impact

This vulnerability allows remote attackers to read sensitive information from memory or cause a denial of service condition through network-based attacks without requiring authentication or user interaction.

Affected Products

  • FreeRDP versions prior to 3.24.0
  • Applications and systems utilizing FreeRDP library for Remote Desktop Protocol connectivity
  • Remote desktop clients built on the FreeRDP implementation

Discovery Timeline

  • 2026-03-13 - CVE CVE-2026-31897 published to NVD
  • 2026-03-17 - Last updated in NVD database

Technical Details for CVE-2026-31897

Vulnerability Analysis

This out-of-bounds read vulnerability occurs in the planar bitmap decompression routine of FreeRDP. The freerdp_bitmap_decompress_planar function processes compressed bitmap data during RDP sessions. The function initializes a pointer srcp to point to the input data buffer pSrcData, then immediately dereferences this pointer without proper bounds validation.

The critical flaw is the missing check for the SrcSize parameter. While the original code verified that pSrcData was not NULL, it failed to validate that there was actually any data to read (i.e., SrcSize >= 1). This oversight allows an attacker to trigger a memory read operation on a zero-length buffer, causing the function to read one byte beyond the allocated memory region.

Root Cause

The root cause is insufficient input validation in the boundary condition handling of the freerdp_bitmap_decompress_planar function. The function only checked for a NULL pointer but did not validate the size parameter before dereferencing the data pointer. This is a classic CWE-125 (Out-of-bounds Read) vulnerability where array index validation is incomplete.

Attack Vector

The vulnerability is network-exploitable without requiring authentication or user interaction. An attacker controlling a malicious RDP server can send specially crafted bitmap data with a zero-length source buffer to a connecting FreeRDP client. When the client attempts to decompress this malformed bitmap data, the out-of-bounds read is triggered. This could lead to information disclosure (reading adjacent memory contents) or crash the client application, resulting in denial of service.

c
// Security patch from libfreerdp/codec/planar.c
 
	const BYTE* srcp = pSrcData;

-	if (!pSrcData)
+	if (!pSrcData || (SrcSize < 1))
	{
-		WLog_ERR(TAG, "Invalid argument pSrcData=nullptr");
+		WLog_ERR(TAG, "Invalid argument pSrcData=%p [size=%" PRIu32 "]", pSrcData, SrcSize);
		return FALSE;
	}

Source: GitHub FreeRDP Commit Details

Detection Methods for CVE-2026-31897

Indicators of Compromise

  • Unexpected FreeRDP client crashes during RDP session establishment or bitmap rendering
  • Memory access violations or segmentation faults in processes using FreeRDP libraries
  • Anomalous RDP traffic patterns containing malformed bitmap data with zero-length source buffers
  • Core dumps indicating crashes within freerdp_bitmap_decompress_planar or related codec functions

Detection Strategies

  • Monitor for FreeRDP client application crashes and correlate with network activity from untrusted RDP servers
  • Implement network intrusion detection rules to identify RDP sessions with anomalous bitmap compression parameters
  • Deploy endpoint detection to monitor for memory access violations in FreeRDP-based applications
  • Audit system logs for repeated connection failures to RDP servers combined with client-side crashes

Monitoring Recommendations

  • Enable crash reporting and monitoring for all FreeRDP-based remote desktop applications
  • Configure network monitoring to alert on RDP connections to non-corporate or untrusted servers
  • Implement application-level logging to capture bitmap decompression errors and parameter values
  • Use memory sanitizers (ASan/MSan) in development and testing environments to detect similar issues

How to Mitigate CVE-2026-31897

Immediate Actions Required

  • Upgrade FreeRDP to version 3.24.0 or later immediately across all affected systems
  • Audit all applications and systems using FreeRDP as a dependency and schedule updates
  • Restrict RDP connections to trusted servers only until patches can be applied
  • Implement network segmentation to limit exposure of vulnerable FreeRDP clients

Patch Information

The vulnerability is fixed in FreeRDP version 3.24.0. The patch adds an early length check to the freerdp_bitmap_decompress_planar function to ensure SrcSize is at least 1 before attempting to read from the source buffer. The fix is available in commit cd27c8faca0eeb0d4309cc5837dfdf3c42eba4e7. Organizations should consult the GitHub Security Advisory GHSA-xgv6-r22m-7c9x for complete details.

Workarounds

  • If immediate patching is not possible, restrict RDP connections to trusted and verified servers only
  • Implement firewall rules to block outbound RDP connections to untrusted networks
  • Consider using alternative RDP clients that do not rely on vulnerable FreeRDP versions
  • Deploy network-based security controls to inspect RDP traffic for malicious bitmap data
bash
# Configuration example - Restrict FreeRDP connections to trusted servers
# Add to firewall rules to limit outbound RDP connections
iptables -A OUTPUT -p tcp --dport 3389 -d trusted_server_ip -j ACCEPT
iptables -A OUTPUT -p tcp --dport 3389 -j DROP

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechFreerdp

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub FreeRDP Commit Details

  • GitHub Security Advisory GHSA-xgv6-r22m-7c9x
  • Related CVEs
  • CVE-2026-33995: FreeRDP Use-After-Free Vulnerability

  • CVE-2026-25959: FreeRDP Use After Free Vulnerability

  • CVE-2026-25955: FreeRDP Use-After-Free Vulnerability

  • CVE-2026-25954: FreeRDP Use-After-Free 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