FreeRDP
CVE-2025-68118
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to malicious/redirecting RDP server
-
DeliverySupply over-long attacker-controlled hostname
-
ExploitTruncated certificate filename left non-NUL-terminated
-
ExecutionOut-of-bounds heap read on Windows
-
ImpactClient crash or limited memory disclosure
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation is limited to FreeRDP builds prior to 3.20.0 running on Windows, because the bug depends on the Microsoft-specific |
| Impact | This is a medium-severity, client-side heap out-of-bounds read (CWE-125) in FreeRDP's certificate cache handling on Windows, and the combined signals point to a LOW real-world priority rather than an urgent threat. The vendor-supplied CVSS 4.0 vector (6.6) emphasizes availability impact (VA:H) with no confidentiality or integrity impact (VC:N/VI:N), which is consistent with the description noting the connection is typically terminated before sensitive data can be exposed - so the practical outcome is a client crash, not reliable data theft. The CVSS marks the exploit maturity as E:U (unproven/unreported), there is NO CISA KEV listing and NO public POC, and EPSS is just 0.24% (14th percentile), all reinforcing that exploitation is neither observed nor likely at scale. Note a tension worth flagging: the vector sets AV:N/PR:N/UI:N (suggesting easy remote unauthenticated reach), but the description makes clear this is a CLIENT-side flaw requiring the victim to connect to an attacker-controlled/redirecting server or open a crafted .rdp file - the 'network' vector reflects the malicious-server model, not a listening service an attacker can hit directly. Also, the 'Information Disclosure' tag overstates impact relative to the vendor's own VC:N rating. Overall: patch in normal maintenance cycles; this is a high-CVSS-adjacent but low-real-risk, primarily denial-of-service (client crash) issue. |
| Exploit ScenarioDerived | An attacker operates a malicious RDP server (or lures a victim into opening a crafted .rdp file) and, via RDP server redirection, supplies an overly long hostname. On Windows, FreeRDP formats the certificate cache filename with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
A heap-based out-of-bounds read in FreeRDP's certificate cache handling on Windows can crash the RDP client when an attacker-controlled hostname is long enough to be truncated into the certificate cache filename buffer without a terminating NUL byte. The flaw affects FreeRDP builds prior to 3.20.0 that run on Windows, where the Microsoft-specific _snprintf is used instead of a NUL-terminating variant; exploitation requires the victim to initiate or accept a connection to attacker-controlled RDP infrastructure (for example via server redirection or a crafted .rdp file), so it is a client-side, user-interaction-dependent issue rather than a remotely reachable service flaw. No public exploit code was identified at time of analysis and there is no CISA KEV listing; EPSS is low at 0.24% (14th percentile), and in default configurations the connection is typically torn down before sensitive memory can be meaningfully disclosed, with a client crash being the more realistic outcome.
RemediationAI
Vendor-released patch: upgrade to FreeRDP 3.20.0 or later, which resolves the issue through the upstream commit a0b21f992a9de1de2468fc9e600aa2b7a4066307 (referenced from advisory GHSA-h78c-5cjx-jw6x). Distributions and downstream packagers who cannot immediately move to 3.20.0 should backport that commit, which bounds the _snprintf write to sizeof(data->cached_hash) - 1, rejects full-length hashes via a strnlen check, rejects hostnames reaching MAX_PATH, and replaces _strdup with strndup. Because this is a client-side, user-interaction-driven bug with no exposed listening service, the practical compensating controls are operational: avoid opening .rdp files or initiating RDP sessions to untrusted or unknown servers, and configure clients/organizations to restrict or disable RDP server-side redirection so a malicious server cannot inject an oversized hostname - the trade-off is loss of legitimate redirection convenience in multi-hop or gateway deployments. Note that this flaw is Windows-specific, so non-Windows clients are not exposed to this truncation behavior and do not require the workaround, though upgrading everywhere keeps builds uniform; in default configurations the session is torn down before meaningful data theft, so the primary residual risk to mitigate is client crash and any information leaked via the out-of-bounds read.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FreeRDP is an open-source implementation of the Remote Desktop Protocol, and the affected code lives in libfreerdp/crypto/certificate_data.c, which builds and loads a certificate cache keyed on the hostname and port of the RDP server. The root-cause class is CWE-125 (Out-of-bounds Read): on Windows the function freerdp_certificate_data_hash formats the cache filename with the Microsoft-specific _snprintf, which - per Microsoft's own documentation - does not append a terminating NUL byte when the formatted output is truncated to fit the destination buffer. If an attacker can influence the hostname (long hostname supplied by a malicious or redirected RDP server, or embedded in a crafted .rdp file), the resulting cached_hash buffer can be left unterminated, and subsequent string operations that scan for a terminator read past the end of the heap allocation. The upstream fix commit (a0b21f992a9de1de2468fc9e600aa2b7a4066307) hardens this in three ways: it bounds the format operation to sizeof(data->cached_hash) - 1, adds a strnlen length check that treats a full-length result as invalid, guards against hostnames whose length reaches MAX_PATH, and replaces the unbounded _strdup(name) with strndup(name, sizeof(name)). The vulnerability is Windows-specific by construction, since the non-Windows builds use a NUL-terminating formatting path; the associated CPE (cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*) reflects the product rather than a version-specific identifier, and patch status is confirmed by both the vendor security advisory GHSA-h78c-5cjx-jw6x and the merged commit. The CVSS 4.0 vector scores 6.6 with environmental/threat metrics set to 'unproven' (E:U), while the independent assessment re-scores the issue at CVSS 3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L - unauthenticated from the network but requiring victim user interaction, with limited confidentiality impact and limited availability impact (client crash).
Know when Freerdp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Client-side flaw reached only when the victim connects to an attacker-controlled/redirecting server or opens a crafted .rdp (UI:R), unauthenticated (PR:N), yielding limited memory disclosure (C:L) and a client crash (A:L).
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.20.0, a vulnerability exists in FreeRDP’s certificate handling code on Windows platforms. The function freerdp_certificate_data_hash_ uses the Microsoft-specific _snprintf function to format certificate cache filenames without guaranteeing NUL termination when truncation occurs. According to Microsoft documentation, _snprintf does not append a terminating NUL byte if the formatted output exceeds the destination buffer size. If an attacker controls the hostname value (for example via server redirection or a crafted .rdp file), the resulting filename buffer may not be NUL-terminated. Subsequent string operations performed on this buffer may read beyond the allocated memory region, resulting in a heap-based out-of-bounds read. In default configurations, the connection is typically terminated before sensitive data can be meaningfully exposed, but unintended memory read or a client crash may still occur under certain conditions. Version 3.20.0 has a patch for the issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Use-after-free in FreeRDP xf_clipboard_format_equal before 3.23.0. Clipboard format comparison uses freed memory. Fifth
Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Surface-to-window update triggers memory corrupti
Use-after-free in FreeRDP xf_SetWindowMinMaxInfo before version 3.23.0. X11 client window management triggers memory cor
Use-after-free in FreeRDP xf_cliprdr_provide_data clipboard handling before 3.23.0. Clipboard data exchange triggers mem
FreeRDP IRP thread handler has a use-after-free where the IRP is freed by Complete() then accessed on the error path. Fi
FreeRDP drive read heap overflow when server-controlled read length exceeds IRP output buffer. Fixed in 3.20.1. PoC avai
FreeRDP client before 3.20.1 has a heap buffer overflow in AUDIN format processing. A malicious RDP server can corrupt m
Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Different code path from CVE-2026-25953. PoC and
FreeRDP is a free implementation of the Remote Desktop Protocol. Rated critical severity (CVSS 9.8), this vulnerability
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical
NVD
CVE.org
EPSS
GitHub
Exploit-DB