CVEfocus › CVE database › CVE-2026-40254

CVE-2026-40254FreeRDP: contains_dotdot() off-by-one allows drive channel path traversal via terminal ..

CVSS 4.2 MediumEPSS 0.2% (higher than 9% of CVEs)Published 2026-04-24Updated 2026-04-24Assigner: GitHub_M

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.

CWE-193

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

4Fixed
32Fix pending
1Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04freerdp3Fixed3.30.0+dfsg-0ubuntu0.26.04.1UBUNTU-CVE-2026-40254
Ubuntu 25.10freerdp3Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40254
Ubuntu 24.04freerdp2Fix pendingUBUNTU-CVE-2026-40254
Ubuntu 24.04freerdp3Fixed3.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-40254
Ubuntu 22.04freerdp2Under investigationUBUNTU-CVE-2026-40254
Ubuntu 20.04freerdp2Fix pendingUBUNTU-CVE-2026-40254
Ubuntu 18.04freerdpFix pendingUBUNTU-CVE-2026-40254
Ubuntu 18.04freerdp2Fix pendingUBUNTU-CVE-2026-40254
Ubuntu 16.04freerdpFix pendingUBUNTU-CVE-2026-40254
Debian 14freerdp3Fixed3.25.0+dfsg-1DEBIAN-CVE-2026-40254
Debian 13freerdp3Fixed3.15.0+dfsg-2.1+deb13u3DEBIAN-CVE-2026-40254
Debian 12freerdp2Fix pendingDEBIAN-CVE-2026-40254
Red Hat Enterprise Linux 10freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 10freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 10freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10freerdp-serverFix pending
Fix deferred
Red Hat Enterprise Linux 10libwinprFix pending
Fix deferred
Red Hat Enterprise Linux 10libwinpr-develFix pending
Fix deferred
Red Hat Enterprise Linux 9freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 9freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 9freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9libwinprFix pending
Fix deferred
Red Hat Enterprise Linux 9libwinpr-develFix pending
Fix deferred
Red Hat Enterprise Linux 8freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 8freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 8freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8libwinprFix pending
Fix deferred
Red Hat Enterprise Linux 8libwinpr-develFix pending
Fix deferred
Red Hat Enterprise Linux 7freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 7freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 7freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7freerdp-pluginsFix pending
Fix deferred
Red Hat Enterprise Linux 7libwinprFix pending
Fix deferred
Red Hat Enterprise Linux 7libwinpr-develFix pending
Fix deferred
Red Hat Enterprise Linux 6freerdpFix pending
Fix deferred
Red Hat Enterprise Linux 6freerdp-develFix pending
Fix deferred
Red Hat Enterprise Linux 6freerdp-libsFix pending
Fix deferred
Red Hat Enterprise Linux 6freerdp-pluginsFix 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.

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.