Skip to main content

Flatpak EUVDEUVD-2026-21625

| CVE-2026-40354 LOW
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-04-11 mitre GHSA-v5fw-rcv7-v6f3
2.9
CVSS 3.1 · NVD

Severity by source

NVD PRIMARY
2.9 LOW
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

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

4
Patch available
Apr 16, 2026 - 05:29 EUVD
1.21.1,1.20.4
EUVD ID Assigned
Apr 11, 2026 - 01:00 euvd
EUVD-2026-21625
Analysis Generated
Apr 11, 2026 - 01:00 vuln.today
CVE Published
Apr 11, 2026 - 00:29 nvd
LOW 2.9

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

CVE-2026-34078 CRITICAL
9.3 Apr 07

Sandbox escape in Flatpak versions prior to 1.16.4 allows applications to access arbitrary host filesystem paths and ach

CVE-2019-10063 CRITICAL
9.0 Mar 26

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

CVE-2021-21261 HIGH
8.8 Jan 14

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity

CVE-2018-6560 HIGH
8.8 Feb 02

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

CVE-2026-34079 HIGH
8.7 Apr 07

Arbitrary file deletion in Flatpak versions prior to 1.16.4 allows sandboxed applications to delete files on the host sy

CVE-2021-21381 HIGH
8.2 Mar 11

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity

CVE-2019-8308 HIGH
8.2 Feb 12

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

CVE-2017-9780 HIGH
7.8 Jun 21

In Flatpak before 0.8.7, a third-party app repository could include malicious apps that contain files with inappropriate

CVE-2021-41133 HIGH
7.8 Oct 08

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated high severity

CVE-2026-39977 HIGH
7.1 Apr 09

Path traversal in flatpak-builder 1.4.5 through 1.4.7 enables arbitrary host file exfiltration through license-files man

CVE-2026-34080 MEDIUM
6.8 Apr 07

Policy parser vulnerability in xdg-dbus-proxy prior to 0.1.7 allows authenticated local users to bypass eavesdrop restri

CVE-2023-28100 MEDIUM
6.5 Mar 16

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Rated medium severi

Share

EUVD-2026-21625 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy