Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
|
| Impact | Despite the low CVSS score (2.9), this vulnerability presents a moderately concerning real-world risk in specific deployment contexts. The CVSS vector (AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L) correctly reflects that exploitation requires local access, high attack complexity due to race condition timing, and only achieves availability impact (file deletion). However, several factors elevate practical concern: First, the attack requires only an unprivileged Flatpak application, which is the default execution model for containerized desktop apps-no special privileges or user interaction needed. Second, xdg-desktop-portal is a core system service present on all Flatpak-enabled systems, providing a reliable attack surface. Third, the symlink race condition, while complex to exploit reliably, is a well-understood attack pattern that determined adversaries can weaponize. The CVSS score appropriately captures the technical difficulty and limited information disclosure impact, but organizations running Flatpak on multi-user systems or those concerned with supply-chain attacks via compromised Flatpak applications should prioritize patching. The availability impact (denial of service via file deletion) could be destructive in production environments. No EPSS probability data or KEV active exploitation confirmation is provided, suggesting this is a managed vulnerability disclosure without evidence of in-the-wild exploitation at the time of public announcement. |
| Exploit ScenarioDerived | A user downloads and installs a compromised or malicious Flatpak application from an untrusted source. Once executed within the Flatpak sandbox, the app creates a symlink in a temporary directory pointing to a sensitive host file (e.g., ~/.ssh/config or a configuration file used by another application). The app then calls the xdg-desktop-portal trash service to delete what appears to be a benign temporary file; due to the race condition, if the symlink target is changed between the portal's validation step and the actual trash operation, the portal deletes the attacker's intended target file on the host. This could result in denial of service (loss of important files), system misconfiguration, or attacks on other applications. No public exploit code has been identified at the time of analysis, but the symlink race condition is a well-documented technique that proof-of-concept implementations could demonstrate. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 11, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Flatpak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Arbitrary file write outside the sandbox is possible through the FileChooser.SaveFiles portal method in xdg-desktop-port
Message-filtering bypass in xdg-dbus-proxy before 0.1.9 lets a malicious or already-compromised sandboxed application -
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
Predictable FileTransfer tokens in XDG Desktop Portal let a malicious sandboxed application redirect drag-and-drop and c
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
EUVD-2026-21625
GHSA-v5fw-rcv7-v6f3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB