The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-25942

CVE-2026-25942: FreeRDP Buffer Overflow Vulnerability

CVE-2026-25942 is a buffer overflow vulnerability in FreeRDP that allows out-of-bounds reads via unchecked server input. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: February 27, 2026

CVE-2026-25942 Overview

CVE-2026-25942 is an Out-of-Bounds Read vulnerability in FreeRDP, a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, the xf_rail_server_execute_result function indexes the global error_code_names[] array (7 elements, indices 0–6) with an unchecked execResult->execResult value received from the server. This allows an out-of-bounds read when the server sends an execResult value of 7 or greater, potentially leading to information disclosure or denial of service.

Critical Impact

A malicious RDP server can trigger an out-of-bounds memory read on connected FreeRDP clients by sending a crafted RAIL execute result with an invalid error code index.

Affected Products

  • FreeRDP versions prior to 3.23.0
  • FreeRDP X11 client implementations using RAIL (Remote Application Integrated Locally)
  • Systems with FreeRDP client libraries linked to vulnerable versions

Discovery Timeline

  • February 25, 2026 - CVE-2026-25942 published to NVD
  • February 25, 2026 - Last updated in NVD database

Technical Details for CVE-2026-25942

Vulnerability Analysis

This vulnerability exists in the FreeRDP Remote Application Integrated Locally (RAIL) channel implementation. The RAIL channel allows remote applications to run on the local desktop, integrating with the client's window manager. When processing server execute results, the xf_rail_server_execute_result function in client/X11/xf_rail.c uses the server-provided execResult value to directly index into a static array of error code names without performing bounds validation.

The error_code_names[] array contains exactly 7 elements (indices 0 through 6), corresponding to valid RAIL execution error codes. However, because the execResult value comes directly from the remote server without validation, a malicious server can supply any value, causing the client to read memory outside the bounds of this array.

Root Cause

The root cause is improper input validation of server-controlled data before using it as an array index. The execResult->execResult field received from the RDP server is used directly to index the error_code_names[] array without checking whether the value falls within valid bounds (0-6). This is classified as CWE-125: Out-of-bounds Read.

Attack Vector

The attack requires a malicious or compromised RDP server to exploit this vulnerability. When a FreeRDP client connects to such a server and the RAIL channel is active, the server can send a crafted Server Execute Result PDU containing an execResult value of 7 or greater. Upon receiving this PDU, the client attempts to access memory beyond the error_code_names[] array boundaries, potentially exposing sensitive memory contents or causing the client application to crash.

c
// Vulnerable code pattern (before fix)
// The error_code_names array has only 7 elements (indices 0-6)
static const char* error_code_names[] = { "RAIL_EXEC_S_OK",
                                          "RAIL_EXEC_E_HOOK_NOT_LOADED",
                                          "RAIL_EXEC_E_DECODE_FAILED",
                                          "RAIL_EXEC_E_NOT_IN_ALLOWLIST",
                                          "RAIL_EXEC_E_FILE_NOT_FOUND",
                                          "RAIL_EXEC_E_FAIL",
                                          "RAIL_EXEC_E_SESSION_LOCKED" };

// Server-controlled execResult used without bounds checking
// If execResult >= 7, this causes out-of-bounds read
error_name = error_code_names[execResult->execResult];

Source: FreeRDP Commit Log

The fix replaces the array-based lookup with a safe switch-case function that handles all valid error codes and returns a safe default for unknown values:

c
// Fixed code - safe string conversion function
static const char* error_code2str(UINT32 code)
{
#define EVCASE(x) \
	case x:       \
		return #x
	switch (code)
	{
		EVCASE(RAIL_EXEC_S_OK);
		EVCASE(RAIL_EXEC_E_HOOK_NOT_LOADED);
		EVCASE(RAIL_EXEC_E_DECODE_FAILED);
		EVCASE(RAIL_EXEC_E_NOT_IN_ALLOWLIST);
		// Additional cases handled safely...
	}
	// Returns safe default for unknown codes
}

Source: FreeRDP Commit Log

Detection Methods for CVE-2026-25942

Indicators of Compromise

  • Unexpected FreeRDP client crashes during RAIL session initialization or execution
  • Memory access violations or segmentation faults in the xf_rail_server_execute_result function
  • Unusual RDP traffic containing RAIL Server Execute Result PDUs with error codes outside the valid range (0-6)

Detection Strategies

  • Monitor FreeRDP client processes for unexpected termination or crash events during active RDP sessions
  • Implement network-level inspection for RDP RAIL channel traffic with anomalous execute result values
  • Review system logs for memory access violations originating from FreeRDP client binaries
  • Deploy application-level monitoring to detect buffer over-read attempts in RDP client applications

Monitoring Recommendations

  • Enable verbose logging in FreeRDP clients to capture RAIL channel communication details
  • Implement endpoint detection rules for FreeRDP process anomalies and memory violations
  • Monitor for connections to untrusted or unknown RDP servers that may be attacker-controlled
  • Track FreeRDP version deployments across the environment to identify vulnerable installations

How to Mitigate CVE-2026-25942

Immediate Actions Required

  • Upgrade FreeRDP to version 3.23.0 or later immediately
  • Audit all systems using FreeRDP client functionality and create an inventory of installed versions
  • Restrict FreeRDP connections to trusted RDP servers only until patching is complete
  • Consider disabling RAIL functionality if remote application integration is not required

Patch Information

The vulnerability is fixed in FreeRDP version 3.23.0. The fix replaces the unsafe array indexing mechanism with a safer switch-case based string conversion function (error_code2str) that properly handles out-of-range values without accessing invalid memory. The security patch is available via the FreeRDP Commit Log. For additional details, refer to the GitHub Security Advisory.

Workarounds

  • Limit FreeRDP usage to connections with trusted and verified RDP servers
  • Disable RAIL channel support if remote application integration is not required for your use case
  • Implement network segmentation to restrict RDP client access to known-good server infrastructure
  • Use application sandboxing or containerization for FreeRDP clients to limit the impact of potential exploitation
bash
# Configuration example - Disable RAIL channel if not needed
# Add to FreeRDP connection command line
xfreerdp /v:server.example.com /u:username -rail

# Or configure in connection file to disable RAIL
# RemoteApplicationMode=0

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Technical References
  • FreeRDP Code Reference

  • FreeRDP Code Reference

  • FreeRDP Code Reference

  • FreeRDP Code Reference

  • FreeRDP Commit Log

  • 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