6.1

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

Analyzed
AliasesUBUNTU-CVE-2026-40254DEBIAN-CVE-2026-40254openSUSE-SU-2026:10832-1
Published 24-04-2026Last modified 24-04-2026

Vulnerability summary

CVE-2026-40254 is a medium (CVSS 6.1) Off-by-one Error vulnerability in freerdp. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 11.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.2, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (NVD)
EPSS score
0.21%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 24-04-2026
    PublishedVulnerability first disclosed.
  2. 24-04-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.21%

Chance of exploitation in the next 30 days

Percentile

12%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.20% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Freerdp

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu3 products
  • freerdpAll versions (No fix recorded)
  • freerdp2All versions (No fix recorded)
  • freerdp3< 3.30.0+dfsg-0ubuntu0.24.04.1 | All versions (No fix recorded) | < 3.30.0+dfsg-0ubuntu0.26.04.1
Debian2 products
  • freerdp2All versions (No fix recorded)
  • freerdp3< 3.15.0+dfsg-2.1+deb13u3 | < 3.25.0+dfsg-1
Freerdp1 product
Opensuse1 product
  • freerdp&distro=openSUSE Tumbleweed< 3.26.0-1.1

4 vendors · 7 products

References

6 links