FreeRDP up to 3.24.x Remote Desktop Protocol drive_file.c contains_dotdot off-by-one
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.5 | $0-$5k | 0.00 |
Summary
A vulnerability classified as problematic has been found in FreeRDP up to 3.24.x. This issue affects the function contains_dotdot of the file channels/drive/client/drive_file.c of the component Remote Desktop Protocol. Performing a manipulation results in off-by-one.
This vulnerability was named CVE-2026-40254. The attack may be initiated remotely. There is no available exploit.
It is recommended to upgrade the affected component.
Details
A vulnerability classified as problematic has been found in FreeRDP up to 3.24.x. This affects the function contains_dotdot of the file channels/drive/client/drive_file.c of the component Remote Desktop Protocol. The manipulation with an unknown input leads to a off-by-one vulnerability. CWE is classifying the issue as CWE-193. A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value. This is going to have an impact on confidentiality, integrity, and availability. The summary by CVE is:
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.
The advisory is shared at github.com. This vulnerability is uniquely identified as CVE-2026-40254 since 04/10/2026. The exploitability is told to be difficult. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. It demands that the victim is doing some kind of user interaction. Technical details are known, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 310292 (Linux Distros Unpatched Vulnerability : CVE-2026-40254), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 3.25.0 eliminates this vulnerability.
The vulnerability is also documented in the vulnerability database at Tenable (310292). If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Name
Version
License
Website
- Product: https://github.com/FreeRDP/FreeRDP/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.6VulDB Meta Temp Score: 4.5
VulDB Base Score: 5.0
VulDB Temp Score: 4.8
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 4.2
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Off-by-oneCWE: CWE-193 / CWE-189
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 310292
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2026-40254
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: FreeRDP 3.25.0
Timeline
04/10/2026 CVE reserved04/24/2026 Advisory disclosed
04/24/2026 VulDB entry created
04/27/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-3xpj-m4hx-8vmx
Status: Confirmed
CVE: CVE-2026-40254 (🔒)
GCVE (CVE): GCVE-0-2026-40254
GCVE (VulDB): GCVE-100-359253
Entry
Created: 04/24/2026 07:31Updated: 04/27/2026 08:26
Changes: 04/24/2026 07:31 (66), 04/27/2026 08:26 (2)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.