CVE-2026-40254FreeRDP: contains_dotdot() off-by-one allows drive channel path traversal via terminal ..
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 requires the victim to connect with drive redirection enabled. Version 3.25.0 patches the issue.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | freerdp3 | Fixed | 3.30.0+dfsg-0ubuntu0.26.04.1 | UBUNTU-CVE-2026-40254 |
| Ubuntu 25.10 | freerdp3 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40254 | |
| Ubuntu 24.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-40254 | |
| Ubuntu 24.04 | freerdp3 | Fixed | 3.30.0+dfsg-0ubuntu0.24.04.1 | UBUNTU-CVE-2026-40254 |
| Ubuntu 22.04 | freerdp2 | Under investigation | UBUNTU-CVE-2026-40254 | |
| Ubuntu 20.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-40254 | |
| Ubuntu 18.04 | freerdp | Fix pending | UBUNTU-CVE-2026-40254 | |
| Ubuntu 18.04 | freerdp2 | Fix pending | UBUNTU-CVE-2026-40254 | |
| Ubuntu 16.04 | freerdp | Fix pending | UBUNTU-CVE-2026-40254 | |
| Debian 14 | freerdp3 | Fixed | 3.25.0+dfsg-1 | DEBIAN-CVE-2026-40254 |
| Debian 13 | freerdp3 | Fixed | 3.15.0+dfsg-2.1+deb13u3 | DEBIAN-CVE-2026-40254 |
| Debian 12 | freerdp2 | Fix pending | DEBIAN-CVE-2026-40254 | |
| Red Hat Enterprise Linux 10 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | freerdp-server | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | freerdp-plugins | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libwinpr | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libwinpr-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | freerdp-plugins | Fix pending Fix deferred |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- FreeRDP: affected: < 3.25.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.