Off-by-one Error Affecting freerdp/freerdp package, versions [,3.25.0)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-FREERDPFREERDP-16300107
  • published26 Apr 2026
  • disclosed24 Apr 2026
  • creditMedoedus

Introduced: 24 Apr 2026

NewCVE-2026-40254  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade freerdp/freerdp to version 3.25.0 or higher.

Overview

Affected versions of this package are vulnerable to Off-by-one Error via the drive redirection process. An attacker can access or modify files outside the intended shared directory by exploiting an off-by-one error in the path traversal filter when connecting to a malicious server with drive redirection enabled.

Workaround

This vulnerability can be mitigated by avoiding connections to untrusted RDP servers with drive redirection enabled and by not using the /drive or /d command-line options in FreeRDP clients.

CVSS Base Scores

version 4.0
version 3.1