
CVE catalog
CVE-2026-40354
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
- Medium · CVSS 6.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.13% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | xdg-desktop-portal | sid | 1.22.1+ds-1 | fixed |
| Debian | xdg-desktop-portal | forky | 1.22.1+ds-1 | fixed |
| Debian | xdg-desktop-portal | trixie | 1.20.3+ds-1 | vulnerable |
| Debian | xdg-desktop-portal | bookworm | 1.16.0-2 | vulnerable |
| Cpe | xdg-desktop-portal | Not reported | 1.18.4-1ubuntu2.24.04.2 | fixed |
| Cpe | xdg-desktop-portal-dev | Not reported | 1.18.4-1ubuntu2.24.04.2 | fixed |
| Cpe | xdg-desktop-portal-tests | Not reported | 1.18.4-1ubuntu2.24.04.2 | fixed |
| Cpe | xdg-desktop-portal | Not reported | Not reported | vulnerable |
| Cpe | xdg-desktop-portal | Not reported | 1.20.4 | fixed |
| Cpe | xdg-desktop-portal | Not reported | Not reported | unknown |
| Suse | xdg-desktop-portal | linux enterprise module for desktop applications 15 sp7 | 1.18.2-150600.4.6.1 | fixed |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.0-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu4 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.3-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2.24.04.1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2.24.04.2 | fixed |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.3+ds-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.3+ds-1ubuntu1.1 | fixed |
| Ubuntu | xdg-desktop-portal | 16.04 | 1.0.3-0ubuntu0.0 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.8-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.8-3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.9-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.9-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.10-0ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.10-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.10-4 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 0.11-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 18.04 | 1.0.3-0ubuntu0.2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 20.04 | 1.4.2-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 20.04 | 1.4.2-3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 20.04 | 1.6.0-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 20.04 | 1.6.0-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 20.04 | 1.6.0-1ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.8.1-1build1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.10.1-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.10.1-4 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.12.1-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.12.1-1build1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.12.1-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.1-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.1-2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.2-1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.2-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.2-1ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.3-0ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.3-0ubuntu2.22.04.1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.4-1ubuntu1~22.04.1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.4-1ubuntu2~22.04.1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 22.04 | 1.14.4-1ubuntu2~22.04.2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.0-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.2-1ubuntu4 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.3-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2.24.04.1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 24.04 | 1.18.4-1ubuntu2.24.04.2 | fixed |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu2 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.0+ds-2ubuntu3 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.3+ds-1ubuntu1 | vulnerable |
| Ubuntu | xdg-desktop-portal | 25.10 | 1.20.3+ds-1ubuntu1.1 | fixed |
| Cpe | xdg-desktop-portal | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | xdg-desktop-portal | source | sid | 1.20.4+ds-1 | not yet assigned | Not reported | [1132958] |
| Debian | xdg-desktop-portal | source | forky | 1.20.4+ds-1 | not yet assigned | Not reported | [1132958] |
| Debian | xdg-desktop-portal | source | trixie | (unfixed) | not yet assigned | Not reported | [1132958] |
| Debian | xdg-desktop-portal | source | bookworm | (unfixed) | not yet assigned | Not reported | [1132958] |
| Cpe | xdg-desktop-portal | cpe | Not reported | 1.18.4-1ubuntu2.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | xdg-desktop-portal-dev | cpe | Not reported | 1.18.4-1ubuntu2.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | xdg-desktop-portal-tests | cpe | Not reported | 1.18.4-1ubuntu2.24.04.2 | Not reported | Not reported | Not reported |
| Cpe | xdg-desktop-portal | cpe | Not reported | 1.20.4 | Not reported | Not reported | Not reported |
| Suse | xdg-desktop-portal | rpm | linux enterprise module for desktop applications 15 sp7 | 1.18.2-150600.4.6.1 | Not reported | SUSE-SU-2026:2712-1 | Not reported |
| Ubuntu | xdg-desktop-portal | deb | 24.04 | 1.18.4-1ubuntu2.24.04.2 | Not reported | USN-8287-1 | Not reported |
| Ubuntu | xdg-desktop-portal | deb | 25.10 | 1.20.3+ds-1ubuntu1.1 | Not reported | USN-8287-1 | Not reported |
| Ubuntu | xdg-desktop-portal | deb | 24.04 | 1.18.4-1ubuntu2.24.04.2 | Not reported | UBUNTU-CVE-2026-40354 | Not reported |
| Ubuntu | xdg-desktop-portal | deb | 25.10 | 1.20.3+ds-1ubuntu1.1 | Not reported | UBUNTU-CVE-2026-40354 | Not reported |
Notes
[trixie] xdg-desktop-portal: Minor issue; can be fixed via point release [bookworm] xdg-desktop-portal: Minor issue; can be fixed via point release
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [xdg-desktop-portal]Affected
Details (2)
1.16.0-2· amd64 · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
1.16.0-2· arm64 · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
- [xdg-desktop-portal-dev]Affected
Source package: [xdg-desktop-portal]
Details (2)
1.16.0-2· all · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
1.16.0-2· all · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
- [xdg-desktop-portal-tests]Affected
Source package: [xdg-desktop-portal]
Details (2)
1.16.0-2· amd64 · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
1.16.0-2· arm64 · bookwormAffected
nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12
[Debian 13 (Trixie)]
- [xdg-desktop-portal]Affected
Details (2)
1.20.3+ds-1· amd64 · trixieAffected
nvd · xdg-desktop-portal · debian · 13
1.20.3+ds-1· arm64 · trixieAffected
nvd · xdg-desktop-portal · debian · 13
- [xdg-desktop-portal-dev]Affected
Source package: [xdg-desktop-portal]
Details (2)
1.20.3+ds-1· all · trixieAffected
nvd · xdg-desktop-portal · debian · 13
1.20.3+ds-1· all · trixieAffected
nvd · xdg-desktop-portal · debian · 13
- [xdg-desktop-portal-tests]Affected
Source package: [xdg-desktop-portal]
Details (2)
1.20.3+ds-1· amd64 · trixieAffected
nvd · xdg-desktop-portal · debian · 13
1.20.3+ds-1· arm64 · trixieAffected
nvd · xdg-desktop-portal · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_2712-1.json]
- [https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4]
- [https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1]
- [https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-40354]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-40354]
- [https://osv.dev/vulnerability/SUSE-SU-2026:2712-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-40354]
- [https://osv.dev/vulnerability/USN-8287-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-40354]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40354.json]
- [https://ubuntu.com/security/notices/USN-8287-1]
- [https://www.openwall.com/lists/oss-security/2026/04/10/14]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]