Off-by-one in FreeRDP - CVE-2026-40254
Published: April 23, 2026
FreeRDP
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information and modify files outside the intended shared drive root.
The vulnerability exists due to an off-by-one error in contains_dotdot() in channels/drive/client/drive_file.c when processing RDPDR drive redirection I/O requests containing a terminal .. path component. A remote attacker can send specially crafted RDPDR requests to disclose sensitive information and modify files outside the intended shared drive root.
User interaction is required, and exploitation requires the victim to connect to a rogue RDP server with drive redirection enabled.