# CVE-2026-40354: xdg-desktop-portal: 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 hos...

CVE-2026-40354 is fixed in 5 products on 1 platform, first by xdg-desktop-portal 1.18.4-1ubuntu2.24.04.2, released April 10, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-40354
- Priority: Routine
- CVSS: 6.3 (medium)
- EPSS: 0.0013
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 10, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | xdg-desktop-portal Debian 14 | 1.20.4+ds-1 | [DEBIAN-CVE-2026-40354](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40354.md) | Apr 11, 2026 |
| Linux | xdg-desktop-portal Ubuntu 24.04.5 LTS (noble) | 1.18.4-1ubuntu2.24.04.2 | [xdg-desktop-portal 1.18.4-1ubuntu2.24.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-xdg-desktop-portal-1.18.4-1ubuntu2.24.04.2.md) | Apr 10, 2026 |
| Linux | xdg-desktop-portal Ubuntu 25.10 (questing) | 1.20.3+ds-1ubuntu1.1 | [xdg-desktop-portal 1.20.3+ds-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-xdg-desktop-portal-1.20.3-ds-1ubuntu1.1.md) | Apr 10, 2026 |
| Linux | xdg-desktop-portal amzn 2023 | 1.18.4-107.amzn2023 | [ALAS2023-2026-1669](https://patchblox.com/security/data/fix/linux/alas2023-2026-1669.md) | May 11, 2026 |
| Linux | xdg-desktop-portal sles 15.7 | 1.18.2-150600.4.6.1 | [SUSE-SU-2026:2712-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-2712-1.md) | Jun 30, 2026 |
| Linux | xdg-desktop-portal-debuginfo amzn 2023 | 1.18.4-107.amzn2023 | [ALAS2023-2026-1669](https://patchblox.com/security/data/fix/linux/alas2023-2026-1669.md) | May 11, 2026 |
| Linux | xdg-desktop-portal-debugsource amzn 2023 | 1.18.4-107.amzn2023 | [ALAS2023-2026-1669](https://patchblox.com/security/data/fix/linux/alas2023-2026-1669.md) | May 11, 2026 |
| Linux | xdg-desktop-portal-devel amzn 2023 | 1.18.4-107.amzn2023 | [ALAS2023-2026-1669](https://patchblox.com/security/data/fix/linux/alas2023-2026-1669.md) | May 11, 2026 |
| Linux | xdg-desktop-portal-tests Ubuntu 24.04.5 LTS (noble) | 1.18.4-1ubuntu2.24.04.2 | [xdg-desktop-portal-tests 1.18.4-1ubuntu2.24.04.2](https://patchblox.com/security/data/fix/linux/ubuntu-noble-xdg-desktop-portal-tests-1.18.4-1ubuntu2.24.04.2.md) | Apr 10, 2026 |
| Linux | xdg-desktop-portal-tests Ubuntu 25.10 (questing) | 1.20.3+ds-1ubuntu1.1 | [xdg-desktop-portal-tests 1.20.3+ds-1ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-xdg-desktop-portal-tests-1.20.3-ds-1ubuntu1.1.md) | Apr 10, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
