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

CVE-2025-68118: FreeRDP Use-After-Free Vulnerability

CVE-2025-68118 is a use-after-free vulnerability in FreeRDP's certificate handling on Windows. Attackers may trigger heap-based out-of-bounds reads via crafted hostnames. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 18, 2026

CVE-2025-68118 Overview

CVE-2025-68118 is an Out-of-Bounds Read vulnerability in FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability exists in FreeRDP's certificate handling code on Windows platforms, specifically in the freerdp_certificate_data_hash function which uses the Microsoft-specific _snprintf function to format certificate cache filenames. When truncation occurs, _snprintf does not append a terminating NUL byte if the formatted output exceeds the destination buffer size, potentially leading to memory disclosure or client crashes.

Critical Impact

An attacker controlling the hostname value (via server redirection or crafted .rdp file) can cause a heap-based out-of-bounds read, potentially exposing sensitive memory contents or causing denial of service through client crashes.

Affected Products

  • FreeRDP versions prior to 3.20.0
  • Windows platform deployments of FreeRDP
  • Applications utilizing FreeRDP certificate handling functions

Discovery Timeline

  • 2025-12-17 - CVE-2025-68118 published to NVD
  • 2026-01-02 - Last updated in NVD database

Technical Details for CVE-2025-68118

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-bounds Read). The flaw resides in FreeRDP's certificate data handling mechanism on Windows platforms. The root issue stems from improper use of the _snprintf function when generating certificate cache filenames. Unlike standard snprintf, the Microsoft _snprintf function does not guarantee NUL termination when the output is truncated to fit within the buffer size.

When processing certificate data, if an attacker can influence the hostname value through mechanisms such as RDP server redirection or by crafting a malicious .rdp file, they can trigger a condition where the resulting filename buffer lacks proper NUL termination. Subsequent string operations on this non-terminated buffer will continue reading beyond allocated memory boundaries, resulting in a heap-based out-of-bounds read condition.

While the default configuration typically terminates the connection before significant data exposure occurs, the vulnerability can still result in unintended memory reads or client crashes under specific conditions, representing a denial of service risk with potential for information disclosure.

Root Cause

The root cause is the use of Microsoft's _snprintf function without proper handling of buffer truncation scenarios. According to Microsoft documentation, _snprintf does not append a terminating NUL byte when the formatted output exceeds the destination buffer size. The vulnerable code path in libfreerdp/crypto/certificate_data.c failed to account for this behavior, leaving buffers potentially unterminated after truncation.

Attack Vector

This vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can exploit this vulnerability through:

  1. Server Redirection Attack: A malicious or compromised RDP server can redirect the client to a hostname crafted to trigger buffer truncation
  2. Malicious RDP File: An attacker can craft an .rdp configuration file with an excessively long hostname that triggers the vulnerable code path when opened by a victim

The attack requires the victim to connect to an attacker-controlled server or open a malicious .rdp file.

c
 #include <freerdp/crypto/certificate_data.h>
 
 #include "certificate.h"
+#include <freerdp/log.h>
+#define TAG FREERDP_TAG("crypto.certificate_data")
 
 struct rdp_certificate_data
 {

Source: GitHub Commit Update

The patch adds proper logging capabilities and implements additional certificate data validation checks to ensure proper buffer handling.

Detection Methods for CVE-2025-68118

Indicators of Compromise

  • Unexpected FreeRDP client crashes when connecting to unfamiliar RDP servers
  • Receipt of .rdp files with unusually long hostnames or suspicious connection parameters
  • Connection attempts to RDP servers with abnormally long hostnames in network logs
  • Memory access violations in freerdp_certificate_data_hash or related certificate functions

Detection Strategies

  • Monitor for FreeRDP client crash events or access violations related to certificate handling
  • Implement network monitoring to detect RDP connections to suspicious or newly registered domains
  • Use endpoint detection to identify malicious .rdp file execution with anomalous parameters
  • Deploy application-level monitoring for string operations on certificate-related buffers

Monitoring Recommendations

  • Enable crash reporting and analysis for FreeRDP client applications
  • Monitor network traffic for RDP server redirections to unexpected destinations
  • Implement file system monitoring for .rdp file creation and modification in user-accessible directories
  • Review RDP connection logs for connections to hosts with unusually long names

How to Mitigate CVE-2025-68118

Immediate Actions Required

  • Upgrade FreeRDP to version 3.20.0 or later immediately
  • Review and restrict sources of .rdp files users can open
  • Implement network-level controls to limit RDP connections to trusted servers only
  • Consider temporarily disabling RDP redirection features until patching is complete

Patch Information

FreeRDP has released version 3.20.0 which addresses this vulnerability. The fix implements proper buffer termination handling in the certificate data processing code. The security patch can be reviewed in the GitHub Commit. Additional details are available in the GitHub Security Advisory GHSA-h78c-5cjx-jw6x.

Workarounds

  • Block or quarantine suspicious .rdp files at email gateways and file transfer points
  • Implement application whitelisting to control which RDP clients can execute
  • Use network segmentation to limit RDP connectivity to approved server destinations
  • Educate users about the risks of opening .rdp files from untrusted sources
bash
# Configuration example - Restrict RDP connections to trusted hosts
# Add to firewall rules or network policy
iptables -A OUTPUT -p tcp --dport 3389 -d trusted.rdp.server.com -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

  • SeverityMEDIUM

  • CVSS Score6.6

  • 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:H/SC:N/SI:N/SA:N/E:U/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
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33995: FreeRDP Use-After-Free Vulnerability

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

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

  • CVE-2026-25955: 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