cve.bz

CVE-2026-40254 freerdp freerdp: Off-by-one Error

6.1 mediumExploit referenceEPSS 0.2%

Medium (6.1) in freerdp freerdp. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40254 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40254?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40254?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40254 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
freerdp:freerdpbefore 3.25.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12freerdp2no fix listedDEBIAN-CVE-2026-40254
Debian13freerdp33.15.0+dfsg-2.1+deb13u3DEBIAN-CVE-2026-40254
Debian14freerdp33.25.0+dfsg-1DEBIAN-CVE-2026-40254
Ubuntu16.04:LTS, 18.04:LTSfreerdpno fix listedUBUNTU-CVE-2026-40254
Ubuntu22.04:LTS, Pro:18.04:LTS, Pro:20.04:LTS and 1 morefreerdp2no fix listedUBUNTU-CVE-2026-40254
Ubuntu24.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.24.04.1UBUNTU-CVE-2026-40254 USN-8561-1
Ubuntu25.10freerdp3no fix listedUBUNTU-CVE-2026-40254
Ubuntu26.04:LTSfreerdp33.30.0+dfsg-0ubuntu0.26.04.1UBUNTU-CVE-2026-40254 USN-8561-1
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7freerdp3.10.3-150700.3.17.1SUSE-SU-2026:3562-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0freerdp3.26.0-160000.1.1SUSE-SU-2026:22194-1
openSUSELeap 16.0freerdp3.26.0-160000.1.1openSUSE-SU-2026:21116-1
openSUSETumbleweedfreerdp3.26.0-1.1openSUSE-SU-2026:10832-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

To mitigate this issue, avoid connecting to untrusted RDP servers with drive redirection enabled. When using `xfreerdp` or similar FreeRDP clients, do not use the `/drive` or `/d` command-line options to prevent sharing local drives with the remote server. Disabling drive redirection limits the attack surface by preventing the vulnerable code path from being exercised.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10freerdpFix deferred
Red Hat Enterprise Linux 6freerdpFix deferred
Red Hat Enterprise Linux 7freerdpFix deferred
Red Hat Enterprise Linux 8freerdpFix deferred
Red Hat Enterprise Linux 9freerdpFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40254.

References

Check your stackJSON