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

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 9% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T02:24:50.794Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: < 3.25.0; before 3.25.0

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx> (exploit, mitigation, vendor-advisory)

## Sources

- CVE List: [CVE-2026-40254](https://www.cve.org/CVERecord?id=CVE-2026-40254), CVE Terms of Use, modified 2026-04-24
- NVD: [CVE-2026-40254](https://nvd.nist.gov/vuln/detail/CVE-2026-40254), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-40254 · Whole record: https://cve.day/CVE-2026-40254.json · Rebuilt by cve.day 2026-11-25T22:59:19.451Z
