Off-by-One Vulnerability in FreeRDP Remote Desktop Protocol Implementation
CVE-2026-40254
4.2MEDIUM
What is CVE-2026-40254?
FreeRDP, a widely used implementation of the Remote Desktop Protocol, has an off-by-one vulnerability in its path traversal filter. Specifically, versions before 3.25.0 contain a flaw in the contains_dotdot() function, which fails to adequately mitigate path traversal risks. This oversight allows a malicious RDP server to exploit the vulnerability, potentially granting unauthorized access to files one directory above the client's shared folder when users connect with drive redirection enabled. Upgrading to version 3.25.0 is essential to patch this security issue and safeguard sensitive data.
Affected Version(s)
FreeRDP < 3.25.0
