{"schemaVersion":3,"id":"CVE-2026-40254","aliases":["UBUNTU-CVE-2026-40254","DEBIAN-CVE-2026-40254","openSUSE-SU-2026:10832-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-24T02:24:50.794Z","modified":"2026-04-24T12:06:22.722Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00228,"percentile":0.12716,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.027999999999999987,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.002},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00228,"percentile":0.12716}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.002,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00228,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00228,"percentile":0.12716}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_FREERDP_FREERDP","name":"Freerdp","source":"github","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-5wr6-8m8j-3h7f","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"}],"affected":[{"vendor":"debian","product":"freerdp2","name":"freerdp2","label":"freerdp2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/freerdp2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"freerdp3","name":"freerdp3","label":"freerdp3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/freerdp3","purlType":"deb","versions":[{"text":"< 3.15.0+dfsg-2.1+deb13u3","noFixRecorded":false,"fixedIn":null},{"text":"< 3.25.0+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.15.0+dfsg-2.1+deb13u3 | < 3.25.0+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp","name":"freerdp","label":"freerdp","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp2","name":"freerdp2","label":"freerdp2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"freerdp3","name":"freerdp3","label":"freerdp3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/freerdp3","purlType":"deb","versions":[{"text":"< 3.30.0+dfsg-0ubuntu0.24.04.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.30.0+dfsg-0ubuntu0.26.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.30.0+dfsg-0ubuntu0.24.04.1 | All versions (No fix recorded) | < 3.30.0+dfsg-0ubuntu0.26.04.1","eol":null,"hubHref":null},{"vendor":"freerdp","product":"freerdp","name":"freerdp","label":"freerdp","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.25.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.25.0","eol":null,"hubHref":"/vendor/freerdp/freerdp"},{"vendor":"opensuse","product":"freerdp&distro=openSUSE Tumbleweed","name":"freerdp","label":"freerdp&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/freerdp&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 3.26.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.26.0-1.1","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx","label":"github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3xpj-m4hx-8vmx","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Mitigation","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-40254","label":"ubuntu.com/security/CVE-2026-40254","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40254","label":"www.cve.org/CVERecord?id=CVE-2026-40254","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8561-1","label":"ubuntu.com/security/notices/USN-8561-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-40254","label":"security-tracker.debian.org/tracker/CVE-2026-40254","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2026-40254","label":"www.suse.com/security/cve/CVE-2026-40254","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21116-1","SUSE-SU-2026:22194-1","SUSE-SU-2026:3562-1","USN-8561-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21116-1","SUSE-SU-2026:22194-1","SUSE-SU-2026:3562-1","USN-8561-1"]},"timeline":[{"kind":"published","date":"2026-04-24T02:24:50.794Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-04-24T12:06:22.722Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:31:38.633Z","stale":false,"partial":false}}