{"id":"UBUNTU-CVE-2026-40354","details":"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.","modified":"2026-05-27T16:45:07.262188296Z","published":"2026-04-11T01:16:00Z","related":["USN-8287-1"],"upstream":["CVE-2026-40354"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40354"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40354"},{"type":"REPORT","url":"https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj"},{"type":"REPORT","url":"https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4"},{"type":"REPORT","url":"https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2026/04/10/14"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8287-1"}],"affected":[{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3-0ubuntu0.0"],"ecosystem_specific":{"binaries":[{"binary_name":"xdg-desktop-portal","binary_version":"1.0.3-0ubuntu0.0"},{"binary_name":"xdg-desktop-portal-tests","binary_version":"1.0.3-0ubuntu0.0"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}},{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=bionic"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"xdg-desktop-portal","binary_version":"1.0.3-0ubuntu0.2"},{"binary_version":"1.0.3-0ubuntu0.2","binary_name":"xdg-desktop-portal-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}},{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=focal"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"xdg-desktop-portal","binary_version":"1.6.0-1ubuntu2"},{"binary_version":"1.6.0-1ubuntu2","binary_name":"xdg-desktop-portal-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}},{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=jammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.14.4-1ubuntu2~22.04.2","binary_name":"xdg-desktop-portal"},{"binary_version":"1.14.4-1ubuntu2~22.04.2","binary_name":"xdg-desktop-portal-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}},{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=noble"},"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"xdg-desktop-portal","binary_version":"1.18.4-1ubuntu2.24.04.2"},{"binary_version":"1.18.4-1ubuntu2.24.04.2","binary_name":"xdg-desktop-portal-tests"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}},{"package":{"name":"xdg-desktop-portal","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=questing"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.20.3+ds-1ubuntu1.1","binary_name":"xdg-desktop-portal"},{"binary_name":"xdg-desktop-portal-tests","binary_version":"1.20.3+ds-1ubuntu1.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40354.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}