CVE-2026-40254
FreeRDP: FreeRDP: Information disclosure and arbitrary file modification via path traversal
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 24, 2026
Updated · July 3, 2026
Description
A flaw was found in FreeRDP, a free implementation of the Remote Desktop Protocol. A rogue Remote Desktop Protocol (RDP) server can exploit an off-by-one error in the path traversal filter. This allows the server to read, list, or write files in the directory above the client's shared folder when the victim connects with drive redirection enabled. This vulnerability can lead to unauthorized information disclosure and arbitrary file modification.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid connecting to untrusted RDP servers with drive redirection enabled. When using xfreerdp or similar FreeRDP clients, do not use the /drive or /d command-line options to prevent sharing local drives with the remote server. Disabling drive redirection limits the attack surface by preventing the vulnerable code path from being exercised.
CVSS / CWE
CVSS 3.1 · 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE-193 · Off-by-one Error