Every CVE Search/ Get API key

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

2.9 LowFix available

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

0.13%Up 0.1 points since Apr 11, 2026
90%50%10%1%

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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
6.3 MediumCVSS: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 LowCVSS: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 MediumCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS: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 LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1
6.3 MediumCVSS: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 SaveFiles files option path traversal (bsc#1287724).
  • CVE-2026-55889: drag-and-drop and copy-paste theft due to predictable FileTransfer key (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

Affected packages
PackageAffectedFixed
xdg-desktop-portal
Debian: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 less
1.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-portal
Debian: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-portal
Debian: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-portal
openEuler:24.03-LTS-SP1
before 1.20.4-1.oe2403sp1
1.20.4-1.oe2403sp1
xdg-desktop-portal
openEuler:24.03-LTS-SP3
before 1.20.4-1.oe2403sp3
1.20.4-1.oe2403sp3
xdg-desktop-portal
openEuler:24.03-LTS
before 1.20.4-1.oe2403
1.20.4-1.oe2403
xdg-desktop-portal
SUSE: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-portal
SUSE: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-portal
SUSE: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-portal
SUSE: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
Affected packages
PackageAffectedFixed
xdg-desktop-portal
SUSE: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-portal
Ubuntu:16.04:LTS
All versions, plus listed versions
1.0.3-0ubuntu0.0
None known
xdg-desktop-portal
Ubuntu:18.04:LTS
All versions, plus listed versions
0.8-20.8-30.9-10.9-20.10-0ubuntu1
Show 4 moreShow less
0.10-20.10-40.11-11.0.3-0ubuntu0.2
None known
xdg-desktop-portal
Ubuntu: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-portal
Ubuntu: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 less
1.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-portal
Ubuntu: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-portal
Ubuntu: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

History
RecordedChangedSources
affected
affected, aliases, facts, referencesOSV
first indexedCVE 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

Show 17 moreShow less
MoveEnter Open