Severity by source
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
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.
AnalysisAI
Flatpak xdg-desktop-portal versions before 1.20.4 and 1.21.x before 1.21.1 allow any sandboxed Flatpak application to delete arbitrary files on the host system through a symlink race condition in the g_file_trash function. The vulnerability exploits insufficient validation of file paths during trash operations, enabling local privilege escalation from a confined container context to affect host files. CVSS severity is low (2.9) due to high attack complexity and local-only vector, but the impact affects all Flatpak users whose host system contains a vulnerable xdg-desktop-portal installation.
Technical ContextAI
Flatpak xdg-desktop-portal is the system service responsible for portal requests from sandboxed Flatpak applications, acting as a trusted intermediary between confined apps and the host desktop environment. The vulnerability exists in the g_file_trash function, which handles file deletion operations initiated by Flatpak apps. The root cause is a classic time-of-check-time-of-use (TOCTOU) race condition (CWE-61) where the portal does not properly validate symlink targets before executing trash operations. An attacker within a Flatpak sandbox can create a symlink pointing to an arbitrary host file, then trigger a trash operation; if the symlink target is swapped between validation and execution, the portal may delete an unintended file with the privileges of the portal process. The CPE cpe:2.3:a:flatpak:xdg-desktop-portal:*:*:*:*:*:*:*:* indicates the vulnerability affects the xdg-desktop-portal component distributed by the Flatpak project across all versions prior to patching.
RemediationAI
Vendor-released patch: upgrade Flatpak xdg-desktop-portal to version 1.20.4 or later (for the 1.20 series) or version 1.21.1 or later (for the 1.21 series). On most Linux distributions, this is available through the system package manager (e.g., apt update && apt upgrade flatpak on Debian/Ubuntu, or dnf upgrade xdg-desktop-portal on Fedora). Verify the installed version with flatpak --version or by checking the xdg-desktop-portal version in your distribution's package manager. Interim mitigation prior to patching involves restricting which Flatpak applications are permitted to run (via Flatseal or flatpak override commands to disable portal access for untrusted apps), though this is not a complete security fix. Consult the security advisory at https://github.com/flatpak/xdg-desktop-portal/security/advisories/GHSA-rqr9-jwwf-wxgj and the openwall-oss-security discussion at https://www.openwall.com/lists/oss-security/2026/04/10/14 for distribution-specific guidance.
Sandbox escape in Flatpak versions prior to 1.16.4 allows applications to access arbitrary host filesystem paths and ach
Flatpak before 1.0.8, 1.1.x and 1.2.x before 1.2.4, and 1.3.x before 1.3.1 allows a sandbox bypass. Rated critical sever
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity
In dbus-proxy/flatpak-proxy.c in Flatpak before 0.8.9, and 0.9.x and 0.10.x before 0.10.3, crafted D-Bus messages to the
Arbitrary file deletion in Flatpak versions prior to 1.16.4 allows sandboxed applications to delete files on the host sy
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity
Flatpak before 1.0.7, and 1.1.x and 1.2.x before 1.2.3, exposes /proc in the apply_extra script sandbox, which allows at
In Flatpak before 0.8.7, a third-party app repository could include malicious apps that contain files with inappropriate
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity
Path traversal in flatpak-builder 1.4.5 through 1.4.7 enables arbitrary host file exfiltration through license-files man
Policy parser vulnerability in xdg-dbus-proxy prior to 0.1.7 allows authenticated local users to bypass eavesdrop restri
Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated medium severi
Same weakness CWE-61 – UNIX Symbolic Link (Symlink) Following
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-21625
GHSA-v5fw-rcv7-v6f3