Skip to main content

FreeRDP CVE-2025-68118

MEDIUM
Out-of-bounds Read (CWE-125)
2025-12-17 security-advisories@github.com
6.6
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure victim to malicious/redirecting RDP server
  2. Delivery
    Supply over-long attacker-controlled hostname
  3. Exploit
    Truncated certificate filename left non-NUL-terminated
  4. Execution
    Out-of-bounds heap read on Windows
  5. Impact
    Client 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 _snprintf behavior of not appending a NUL byte on truncation. The attacker must control the hostname value used to build the certificate cache filename - achievable via RDP server redirection from an attacker-controlled/malicious server or via a crafted .rdp file the victim opens - and that hostname must be long enough to force truncation of the destination filename buffer. Key limiting factors: this is a client-side flaw (no exposed listening service to attack), it requires the victim to initiate/accept a connection to attacker-controlled infrastructure, and in default configurations the connection is torn down before meaningful memory can be read, so the realistic outcome is a client crash rather than data theft.

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 _snprintf, which does not NUL-terminate on truncation, so subsequent string operations read past the heap buffer and crash the FreeRDP client or leak limited adjacent memory. No public exploit code is known, and in default configurations the session is usually torn down before any meaningful data is exposed.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 6.6 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular open-source RDP client embedded in many remote-desktop tools
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +33
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
CVE-2026-25997 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_clipboard_format_equal before 3.23.0. Clipboard format comparison uses freed memory. Fifth

CVE-2026-25953 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Surface-to-window update triggers memory corrupti

CVE-2026-25952 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_SetWindowMinMaxInfo before version 3.23.0. X11 client window management triggers memory cor

CVE-2026-25959 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_cliprdr_provide_data clipboard handling before 3.23.0. Clipboard data exchange triggers mem

CVE-2026-22857 CRITICAL POC
9.8 Jan 14

FreeRDP IRP thread handler has a use-after-free where the IRP is freed by Complete() then accessed on the error path. Fi

CVE-2026-22854 CRITICAL POC
9.8 Jan 14

FreeRDP drive read heap overflow when server-controlled read length exceeds IRP output buffer. Fixed in 3.20.1. PoC avai

CVE-2026-22852 CRITICAL POC
9.8 Jan 14

FreeRDP client before 3.20.1 has a heap buffer overflow in AUDIN format processing. A malicious RDP server can corrupt m

CVE-2026-25955 CRITICAL POC
9.8 Feb 25

Use-after-free in FreeRDP xf_AppUpdateWindowFromSurface before 3.23.0. Different code path from CVE-2026-25953. PoC and

CVE-2024-32041 CRITICAL POC
9.8 Apr 22

FreeRDP is a free implementation of the Remote Desktop Protocol. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2023-40574 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40569 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

CVE-2023-40567 CRITICAL POC
9.8 Aug 31

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Rated critical

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy