CVE-2026-40254: FreeRDP - Path Traversal
- Cve: CVE-2026-40254
- Name: FreeRDP - Path Traversal
- 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.
- Impact: A rogue RDP server can access or modify files outside the shared folder, potentially compromising client data.
- Remediation: Upgrade to version 3.25.0 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, file_system_write, information_disclosure, data_tampering
- Requirement type: user_interaction
- Requirements: Victim must connect with drive redirection enabled
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00208
- Epss percentile: 0.10889
- Assignee: [email protected]
- Published at: 2026-04-24T03:16:11Z
- Age in days: 214
- Modified at: 2026-11-11T23:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40254
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-193 | Off-by-one Error |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx | nvd | 2026-04-24 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx | nvd | Exploit, Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| freerdp:freerdp | < 3.25.0 | no | nvd | /v1/products/freerdp/freerdp |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| FreeRDP/FreeRDP | security_advisory | yes | /v1/repositories/FreeRDP/FreeRDP |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-24
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts