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...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
2.9
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.
- Record
CVE-2026-40354- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-61
- Updated
- 2026-11-02
EUVDEUVD-2026-21625
2.9
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.
- Record
EUVD-2026-21625- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-v5fw-rcv7-v6f3
2.9
Flatpak xdg-desktop-portal before 1.20.4 and 1.21.x before 1.21.1 allows any Flatpak app to trash...
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.
- Record
GHSA-v5fw-rcv7-v6f3- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-61
- Updated
- 2026-11-02
NVD
2.9
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.
- Record
CVE-2026-40354- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-61
- Updated
- 2026-11-02
OSV
2.9
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.
- Record
CVE-2026-40354- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-61
- Updated
- 2026-11-05
OSVDEBIAN-CVE-2026-40354
6.3
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.
- Record
DEBIAN-CVE-2026-40354- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVOESA-2026-2182
2.9
xdg-desktop-portal security update
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.
Security Fix(es):
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.(CVE-2026-40354)
- Record
OESA-2026-2182- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVOESA-2026-2183
2.9
xdg-desktop-portal security update
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.
Security Fix(es):
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.(CVE-2026-40354)
- Record
OESA-2026-2183- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVOESA-2026-2184
2.9
xdg-desktop-portal security update
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.
Security Fix(es):
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.(CVE-2026-40354)
- Record
OESA-2026-2184- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-40354
2.9
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.
- Record
UBUNTU-CVE-2026-40354- CVSS 3.1
- 2.9 Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVSUSE-SU-2026:2105-1 No score
Security update for xdg-desktop-portal
This update for xdg-desktop-portal fixes the following issue:
- CVE-2026-40354: File deletion via symlink attack (bsc#1262045).
- Record
SUSE-SU-2026:2105-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:2712-1 No score
Security update for xdg-desktop-portal
This update for xdg-desktop-portal fixes the following issue:
- CVE-2026-40354: File deletion via symlink attack (bsc#1262045).
- Record
SUSE-SU-2026:2712-1- Updated
- 2026-11-02
OSVSUSE-SU-2026:5098-1 No score
Security update for xdg-desktop-portal
This update for xdg-desktop-portal fixes the following issues:
- CVE-2026-40354: file deletion via symlink attack (bsc#1262045).
- CVE-2026-55888: arbitrary file access due to
SaveFilesfilesoption path traversal (bsc#1287724). - CVE-2026-55889: drag-and-drop and copy-paste theft due to predictable
FileTransferkey (bsc#1287725).
- Record
SUSE-SU-2026:5098-1- Updated
- 2026-11-05
OSVUSN-8287-1 No score
xdg-desktop-portal vulnerability
It was discovered that XDG Desktop Portal incorrectly handled trashing files. A local attacker could possibly use this issue to delete arbitrary files on the host file system via a symlink attack.
- Record
USN-8287-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
xdg-desktop-portalDebian:12 |
All versions, plus listed versions 1.16.0-21.16.0-31.17.0-11.17.1-11.17.2-1 Show 23 moreShow less1.18.0-11.18.1-11.18.2-11.18.3-11.18.4-11.18.4-21.19.0+ds-11.19.1+ds-11.19.2+ds-11.19.3+ds-11.19.4+ds-11.20.0+ds-11.20.0+ds-21.20.1+ds-11.20.1+ds-21.20.3+ds-11.20.3+ds-21.20.3+ds-31.20.4+ds-11.21.0+ds-11.21.1+ds-11.22.0+ds-11.22.1+ds-1 |
None known |
xdg-desktop-portalDebian:13 |
All versions, plus listed versions 1.20.3+ds-11.20.3+ds-21.20.3+ds-31.20.4+ds-11.21.0+ds-11.21.1+ds-11.22.0+ds-11.22.1+ds-1 |
None known |
xdg-desktop-portalDebian:14 |
before 1.20.4+ds-1, plus listed versions 1.20.3+ds-11.20.3+ds-21.20.3+ds-3 |
1.20.4+ds-1 |
xdg-desktop-portalopenEuler:24.03-LTS-SP1 |
before 1.20.4-1.oe2403sp1 | 1.20.4-1.oe2403sp1 |
xdg-desktop-portalopenEuler:24.03-LTS-SP3 |
before 1.20.4-1.oe2403sp3 | 1.20.4-1.oe2403sp3 |
xdg-desktop-portalopenEuler:24.03-LTS |
before 1.20.4-1.oe2403 | 1.20.4-1.oe2403 |
xdg-desktop-portalSUSE:Linux Enterprise Module for Desktop Applications 15 SP7 |
before 1.18.2-150600.4.6.1 | 1.18.2-150600.4.6.1 |
xdg-desktop-portalSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS From an advisory covering 3 CVEs |
before 1.16.0-150500.3.13.1 | 1.16.0-150500.3.13.1 |
xdg-desktop-portalSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS From an advisory covering 3 CVEs |
before 1.16.0-150500.3.13.1 | 1.16.0-150500.3.13.1 |
xdg-desktop-portalSUSE:Linux Enterprise Server 15 SP5-LTSS From an advisory covering 3 CVEs |
before 1.16.0-150500.3.13.1 | 1.16.0-150500.3.13.1 |
Show 7 moreShow less
| Package | Affected | Fixed |
|---|---|---|
xdg-desktop-portalSUSE:Linux Enterprise Server for SAP Applications 15 SP5 From an advisory covering 3 CVEs |
before 1.16.0-150500.3.13.1 | 1.16.0-150500.3.13.1 |
xdg-desktop-portalUbuntu:16.04:LTS |
All versions, plus listed versions 1.0.3-0ubuntu0.0 |
None known |
xdg-desktop-portalUbuntu:18.04:LTS |
All versions, plus listed versions 0.8-20.8-30.9-10.9-20.10-0ubuntu1 Show 4 moreShow less0.10-20.10-40.11-11.0.3-0ubuntu0.2 |
None known |
xdg-desktop-portalUbuntu:20.04:LTS |
All versions, plus listed versions 1.4.2-21.4.2-31.6.0-11.6.0-1ubuntu11.6.0-1ubuntu2 |
None known |
xdg-desktop-portalUbuntu:22.04:LTS |
All versions, plus listed versions 1.8.1-1build11.10.1-21.10.1-41.12.1-11.12.1-1build1 Show 11 moreShow less1.12.1-1ubuntu11.14.1-11.14.1-21.14.2-11.14.2-1ubuntu11.14.2-1ubuntu21.14.3-0ubuntu21.14.3-0ubuntu2.22.04.11.14.4-1ubuntu1~22.04.11.14.4-1ubuntu2~22.04.11.14.4-1ubuntu2~22.04.2 |
None known |
xdg-desktop-portalUbuntu:24.04:LTS |
before 1.18.4-1ubuntu2.24.04.2, plus listed versions 1.18.0-1ubuntu11.18.2-1ubuntu11.18.2-1ubuntu31.18.2-1ubuntu41.18.3-1ubuntu11.18.4-1ubuntu21.18.4-1ubuntu2.24.04.1 |
1.18.4-1ubuntu2.24.04.2 |
xdg-desktop-portalUbuntu:25.10 |
before 1.20.3+ds-1ubuntu1.1, plus listed versions 1.20.0+ds-2ubuntu11.20.0+ds-2ubuntu21.20.0+ds-2ubuntu31.20.3+ds-1ubuntu1 |
1.20.3+ds-1ubuntu1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, aliases, facts, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-40354 is a low vulnerability (CVSS 2.9) in Flatpak Xdg-desktop-portal, published April 11, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.13%, the 2nd percentile. Fixed in xdg-desktop-portal 1.20.4+ds-1.
References
github.com/flatpak/xdg-desktop-portal/releases/tag/1.21.1
github.com/flatpak/xdg-desktop-portal/releases/tag/1.20.4
openwall.com/lists/oss-security/2026/04/10/14
github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj
nvd.nist.gov/vuln/detail/CVE-2026-40354
github.com/advisories/GHSA-v5fw-rcv7-v6f3
Show 17 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40354.json
security-tracker.debian.org/tracker/CVE-2026-40354
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2182
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2183
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2184
suse.com/support/update/announcement/2026/suse-su-20262105-1
bugzilla.suse.com/1262045
suse.com/security/cve/CVE-2026-40354
suse.com/support/update/announcement/2026/suse-su-20262712-1
suse.com/support/update/announcement/2026/suse-su-20265098-1
bugzilla.suse.com/1287724
bugzilla.suse.com/1287725
suse.com/security/cve/CVE-2026-55888
suse.com/security/cve/CVE-2026-55889
ubuntu.com/security/CVE-2026-40354
cve.org/CVERecord?id=CVE-2026-40354
ubuntu.com/security/notices/USN-8287-1