# CVE-2026-40254: FreeRDP: contains\_dotdot() off-by-one allows drive channel path traversal via terminal ..

- Priority: **Routine**
- Reason: Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-24 · Modified: 2026-04-24
- Aliases: UBUNTU-CVE-2026-40254, DEBIAN-CVE-2026-40254, openSUSE-SU-2026:10832-1
- Record: https://cvemate.com/vulnerability/CVE-2026-40254 · JSON: https://cvemate.com/vulnerability/CVE-2026-40254/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.208%, percentile 11.542%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian freerdp2 (Debian): All versions (No fix recorded)
- debian freerdp3 (Debian): \< 3.15.0+dfsg-2.1+deb13u3 \| \< 3.25.0+dfsg-1
- ubuntu freerdp (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp2 (Ubuntu): All versions (No fix recorded)
- ubuntu freerdp3 (Ubuntu): \< 3.30.0+dfsg-0ubuntu0.24.04.1 \| All versions (No fix recorded) \| \< 3.30.0+dfsg-0ubuntu0.26.04.1
- freerdp freerdp: \< 3.25.0
- opensuse freerdp&distro=openSUSE Tumbleweed (openSUSE): \< 3.26.0-1.1

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx>
- <https://ubuntu.com/security/CVE-2026-40254>
- <https://www.cve.org/CVERecord?id=CVE-2026-40254>
- <https://ubuntu.com/security/notices/USN-8561-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-40254>
- <https://www.suse.com/security/cve/CVE-2026-40254>

---

Data as of 2026-12-05T07:09:05.160Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
