Skip to content
OpenAdvisories
Low · 2.9 CVE-2026-40354 EUVD-2026-21625GHSA-v5fw-rcv7-v6f3

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 symlin…

Published Apr 11, 2026 · Updated Apr 15, 2026 · Assigned by mitre

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.

Affected products

VendorProductAffectedFixed
Flatpak xdg-desktop-portal < 1.20.4, 1.21.0 – < 1.21.1 1.20.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 xdg-desktop-portal 1.20.4+ds-1 —
Debian 13 xdg-desktop-portal No fix yet —
Debian 12 xdg-desktop-portal No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 xdg-desktop-portal 1.20.3+ds-1ubuntu1.1 —
Ubuntu 24.04 LTS xdg-desktop-portal 1.18.4-1ubuntu2.24.04.2 —
Ubuntu 22.04 LTS xdg-desktop-portal No fix yet —
Ubuntu 20.04 LTS xdg-desktop-portal No fix yet —
Ubuntu 18.04 LTS xdg-desktop-portal No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS xdg-desktop-portal No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 xdg-desktop-portal 1.18.2-150600.4.6.1 SUSE-SU-2026:2712-1
SLES 15 SP5 xdg-desktop-portal 1.16.0-150500.3.13.1 SUSE-SU-2026:5098-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 xdg-desktop-portal 1.16.0-150500.3.13.1 SUSE-SU-2026:5098-1
SLE HPC 15 SP5 xdg-desktop-portal 1.16.0-150500.3.13.1 SUSE-SU-2026:5098-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 xdg-desktop-portal +1 1.18.4-107.amzn2023 ALAS2023-2026-1669
Amazon Linux 2 xdg-desktop-portal +1 1.0.2-1.amzn2.0.3 ALAS2-2026-3298

Advisories 4

References