CVE-2026-40354 Details
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.
A vulnerability in Flatpak's xdg-desktop-portal prior to 1.20.4 and 1.21.x prior to 1.21.1 allows any Flatpak application to trash files in the host system. This issue arises from a symlink attack that exploits a time-of-check/time-of-use (TOCTOU) vulnerability in the Trash portal. The portal uses g_file_trash on paths that can be manipulated by the application, leading to the unintentional deletion of arbitrary host files.
Users can update to Flatpak xdg-desktop-portal version 1.20.4 or 1.21.1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-61 | UNIX Symbolic Link (Symlink) Following | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| flatpak xdg-desktop-portal | < 1.20.4 1.21.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 11, 2026 | New CVE Received | [email protected] |