{"id":"CVE-2026-40354","aliases":["DEBIAN-CVE-2026-40354","EUVD-2026-21625","GHSA-rqr9-jwwf-wxgj","GHSA-v5fw-rcv7-v6f3","OESA-2026-2182","OESA-2026-2183","OESA-2026-2184","SUSE-SU-2026:2105-1","SUSE-SU-2026:2712-1","SUSE-SU-2026:5098-1","UBUNTU-CVE-2026-40354","USN-8287-1"],"status":"published","title":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash...","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","severity":{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00133,"percentile":0.0287,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-61"],"published":"2026-04-11T00:29:03Z","modified":"2026-11-05T13:27:13Z","fixes":[{"ecosystem":"Debian:14","package":"xdg-desktop-portal","fixed_in":["1.20.4+ds-1"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS-SP1","package":"xdg-desktop-portal","fixed_in":["1.20.4-1.oe2403sp1"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS-SP3","package":"xdg-desktop-portal","fixed_in":["1.20.4-1.oe2403sp3"],"sources":["osv"]},{"ecosystem":"openEuler:24.03-LTS","package":"xdg-desktop-portal","fixed_in":["1.20.4-1.oe2403"],"sources":["osv"]},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP7","package":"xdg-desktop-portal","fixed_in":["1.18.2-150600.4.6.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"xdg-desktop-portal","fixed_in":["1.18.4-1ubuntu2.24.04.2"],"sources":["osv"]},{"ecosystem":"Ubuntu:25.10","package":"xdg-desktop-portal","fixed_in":["1.20.3+ds-1ubuntu1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.0-2","1.16.0-3","1.17.0-1","1.17.1-1","1.17.2-1","1.18.0-1","1.18.1-1","1.18.2-1","1.18.3-1","1.18.4-1","1.18.4-2","1.19.0+ds-1","1.19.1+ds-1","1.19.2+ds-1","1.19.3+ds-1","1.19.4+ds-1","1.20.0+ds-1","1.20.0+ds-2","1.20.1+ds-1","1.20.1+ds-2","1.20.3+ds-1","1.20.3+ds-2","1.20.3+ds-3","1.20.4+ds-1","1.21.0+ds-1","1.21.1+ds-1","1.22.0+ds-1","1.22.1+ds-1"]},{"source":"osv","ecosystem":"Debian:13","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.3+ds-1","1.20.3+ds-2","1.20.3+ds-3","1.20.4+ds-1","1.21.0+ds-1","1.21.1+ds-1","1.22.0+ds-1","1.22.1+ds-1"]},{"source":"osv","ecosystem":"Debian:14","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.4+ds-1"}]}],"versions":["1.20.3+ds-1","1.20.3+ds-2","1.20.3+ds-3"]},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP1","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.4-1.oe2403sp1"}]}]},{"source":"osv","ecosystem":"openEuler:24.03-LTS-SP3","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.4-1.oe2403sp3"}]}]},{"source":"osv","ecosystem":"openEuler:24.03-LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.4-1.oe2403"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP7","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.18.2-150600.4.6.1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.0-150500.3.13.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.0-150500.3.13.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.0-150500.3.13.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.16.0-150500.3.13.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3-0ubuntu0.0"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.8-2","0.8-3","0.9-1","0.9-2","0.10-0ubuntu1","0.10-2","0.10-4","0.11-1","1.0.3-0ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.2-2","1.4.2-3","1.6.0-1","1.6.0-1ubuntu1","1.6.0-1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.1-1build1","1.10.1-2","1.10.1-4","1.12.1-1","1.12.1-1build1","1.12.1-1ubuntu1","1.14.1-1","1.14.1-2","1.14.2-1","1.14.2-1ubuntu1","1.14.2-1ubuntu2","1.14.3-0ubuntu2","1.14.3-0ubuntu2.22.04.1","1.14.4-1ubuntu1~22.04.1","1.14.4-1ubuntu2~22.04.1","1.14.4-1ubuntu2~22.04.2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.18.4-1ubuntu2.24.04.2"}]}],"versions":["1.18.0-1ubuntu1","1.18.2-1ubuntu1","1.18.2-1ubuntu3","1.18.2-1ubuntu4","1.18.3-1ubuntu1","1.18.4-1ubuntu2","1.18.4-1ubuntu2.24.04.1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.3+ds-1ubuntu1.1"}]}],"versions":["1.20.0+ds-2ubuntu1","1.20.0+ds-2ubuntu2","1.20.0+ds-2ubuntu3","1.20.3+ds-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.18.4-1ubuntu2.24.04.2"}]}],"versions":["1.18.0-1ubuntu1","1.18.2-1ubuntu1","1.18.2-1ubuntu3","1.18.2-1ubuntu4","1.18.3-1ubuntu1","1.18.4-1ubuntu2","1.18.4-1ubuntu2.24.04.1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"xdg-desktop-portal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.20.3+ds-1ubuntu1.1"}]}],"versions":["1.20.0+ds-2ubuntu1","1.20.0+ds-2ubuntu2","1.20.0+ds-2ubuntu3","1.20.3+ds-1ubuntu1"]}],"products":[{"vendor":"flatpak","product":"xdg-desktop-portal"}],"references":[{"url":"https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1","tags":["Product","web","report"]},{"url":"https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4","tags":["Product","web","report"]},{"url":"https://www.openwall.com/lists/oss-security/2026/04/10/14","tags":["Mailing List","web","report"]},{"url":"https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj","tags":["Vendor Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40354","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-v5fw-rcv7-v6f3"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40354.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-40354","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2182","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2183","tags":["advisory"]},{"url":"https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2184","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262105-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1262045","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2026-40354","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262712-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-20265098-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1287724","tags":["report"]},{"url":"https://bugzilla.suse.com/1287725","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2026-55888","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-55889","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2026-40354","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40354","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8287-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-40354","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T00:29:03.467Z","modified":"2026-04-15T15:14:27.291Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low","assessor":"cna"}],"cwes":["CWE-61"],"updated_at":"2026-11-02T13:43:00.288193Z"}],"euvd":[{"id":"EUVD-2026-21625","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T00:29:03Z","modified":"2026-04-15T15:14:27Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T19:24:25.212217Z"}],"ghsa":[{"id":"GHSA-v5fw-rcv7-v6f3","title":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash...","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T03:30:29Z","modified":"2026-04-11T03:30:41Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"cwes":["CWE-61"],"updated_at":"2026-11-02T15:07:24.880377Z"}],"nvd":[{"id":"CVE-2026-40354","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T01:16:16.27Z","modified":"2026-10-26T21:10:00.17Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low","assessor":"secondary"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-61"],"updated_at":"2026-11-02T14:12:14.37744Z"}],"osv":[{"id":"CVE-2026-40354","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T00:29:03.467Z","modified":"2026-11-05T13:27:13.918624161Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"cwes":["CWE-61"],"updated_at":"2026-11-05T16:37:45.64821Z"},{"id":"DEBIAN-CVE-2026-40354","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T01:16:16.27Z","modified":"2026-10-27T09:47:32.89111556Z","cvss":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:54.892385Z"},{"id":"OESA-2026-2182","title":"xdg-desktop-portal security update","description":"xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for file access, opening URIs, printing and others.\r\n\r\nSecurity Fix(es):\n\nFlatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.(CVE-2026-40354)","status":"published","published":"2026-05-03T11:11:10Z","modified":"2026-08-18T01:19:56.645003152Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T15:52:46.087701Z"},{"id":"OESA-2026-2183","title":"xdg-desktop-portal security update","description":"xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for file access, opening URIs, printing and others.\r\n\r\nSecurity Fix(es):\n\nFlatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.(CVE-2026-40354)","status":"published","published":"2026-05-03T11:11:10Z","modified":"2026-08-18T01:19:50.913548212Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T15:52:46.087701Z"},{"id":"OESA-2026-2184","title":"xdg-desktop-portal security update","description":"xdg-desktop-portal works by exposing a series of D-Bus interfaces known as portals under a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for file access, opening URIs, printing and others.\r\n\r\nSecurity Fix(es):\n\nFlatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.(CVE-2026-40354)","status":"published","published":"2026-05-03T11:11:10Z","modified":"2026-08-18T01:19:51.526048049Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"}],"updated_at":"2026-11-02T15:52:46.087701Z"},{"id":"UBUNTU-CVE-2026-40354","description":"Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash any file in the host context via a symlink attack on g_file_trash.","status":"published","published":"2026-04-11T01:16:00Z","modified":"2026-05-27T16:45:07.262188296Z","cvss":[{"version":"3.1","score":2.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"low"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T16:56:16.686388Z"},{"id":"SUSE-SU-2026:2105-1","title":"Security update for xdg-desktop-portal","description":"This update for xdg-desktop-portal fixes the following issue:\n\n- CVE-2026-40354: File deletion via symlink attack (bsc#1262045).\n","status":"withdrawn","published":"2026-05-28T16:03:59Z","modified":"2026-07-13T14:00:33.9612325Z","updated_at":"2026-11-02T15:54:02.312556Z"},{"id":"SUSE-SU-2026:2712-1","title":"Security update for xdg-desktop-portal","description":"This update for xdg-desktop-portal fixes the following issue:\n\n- CVE-2026-40354: File deletion via symlink attack (bsc#1262045).\n","status":"published","published":"2026-06-30T12:01:00Z","modified":"2026-07-01T09:45:07.376131784Z","updated_at":"2026-11-02T15:54:04.519245Z"},{"id":"SUSE-SU-2026:5098-1","title":"Security update for xdg-desktop-portal","description":"This update for xdg-desktop-portal fixes the following issues:\n\n- CVE-2026-40354: file deletion via symlink attack (bsc#1262045).\n- CVE-2026-55888: arbitrary file access due to `SaveFiles` `files` option path traversal (bsc#1287724).\n- CVE-2026-55889: drag-and-drop and copy-paste theft due to predictable `FileTransfer` key (bsc#1287725).\n","status":"published","published":"2026-11-04T17:53:55Z","modified":"2026-11-05T13:15:07.653544934Z","updated_at":"2026-11-05T13:30:00.949926Z"},{"id":"USN-8287-1","title":"xdg-desktop-portal vulnerability","description":"It was discovered that XDG Desktop Portal incorrectly handled\ntrashing files. A local attacker could possibly use this issue to\ndelete arbitrary files on the host file system via a symlink attack.","status":"published","published":"2026-05-20T18:02:35Z","modified":"2026-05-27T16:59:13.644075376Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
