CVE-2026-40254: FreeRDP is a free implementation of the Remote Desktop Protocol
CVE-2026-40254 is a medium-severity flaw (CVSS 4.2) affecting freerdp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
FreeRDP is a free implementation of the Remote Desktop Protocol. Versions prior to 3.25.0 have an off-by-one in the path traversal filter in `channels/drive/client/drive_file.c`. The `contains_dotdot()` function catches `../` and `..\` mid-path but misses `..` when it's the last component with no trailing separator. A rogue RDP server can read, list, or write files one directory above the client's shared folder through RDPDR requests. This requir
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.2 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.2% (top 90%) |
| CISA exploited list | No |
| Weakness | CWE-193 |
| Published | 2026-04-24 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40254?
freerdp: upgrade to 3.25.0. Exact commands for each OS are on this page.
Is CVE-2026-40254 being exploited?
CVE-2026-40254 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40254 affect?
CVE-2026-40254 affects freerdp. Severity is medium (CVSS 4.2). FreeRDP is a free implementation of the Remote Desktop Protocol. Versions prior to 3.25.0 have an off-by-one in the path traversal filter in `channels/drive/client/drive_file.c`. The `contains_dotdot()` function catches `../` and `..\` mid-
How urgent is CVE-2026-40254?
Priority 22/100. Public exploit reference
Software pages
Related CVEs
- CVE-2026-111379 HIGH 7.3 UPGRADE FreeRDP before 3.32.0 contains a heap buffer overflow vulnerability in persistent_cache_read_entry_v3 that all
- CVE-2026-109256 MEDIUM 5.3 UPGRADE FreeRDP 3.10.0 through 3.32.2 contains a heap buffer overflow in the WinPR png_write_data callback that writes
- CVE-2026-109257 MEDIUM 5.9 DOWNGRADE FreeRDP before 3.32.0 contains a double-free vulnerability in nsc_context_initialize_encode() that leaves dang
- CVE-2026-109940 MEDIUM 4.3 UPGRADE FreeRDP 3.0.0-beta1 before 3.32.0 on Unix builds with PKCS#11 support has a stack-based buffer overflow in wpr
- CVE-2026-109939 MEDIUM 6.5 UPGRADE FreeRDP 3.27.1 before 3.32.0 contains a NULL pointer dereference in update_read_cache_bitmap_v3_order() in lib