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
Affects xdg-desktop-portalSource GCVE Database
Not known to be exploited · CVSS 2.9 Low · fixed in 1.18.4-1ubuntu2.24.04.2 : update xdg-desktop-portal when convenient.
Data as of 24 Nov 2026, 20:28 UTC
- Patch
- Available – fixed in 1.18.4-1ubuntu2.24.04.2, 1.20.3+ds-1ubuntu1.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 11 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu xdg-desktop-portal to 1.18.4-1ubuntu2.24.04.2 (package) or 1.20.3+ds-1ubuntu1.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10xdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSxdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSxdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSxdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSxdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSxdg-desktop-portalpkg:deb/ubuntu/xdg-desktop-portal?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-40354 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40354 (opens in a new tab)
- github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj (opens in a new tab)
- github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4 (opens in a new tab)
- github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1 (opens in a new tab)
- openwall.com/lists/oss-security/2026/04/10/14 (opens in a new tab)
- ubuntu.com/security/notices/USN-8287-1 (opens in a new tab)