CVE-2026-40354: CWE-61 UNIX Symbolic Link (Symlink) Following in Flatpak xdg-desktop-portal
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.
AI Analysis
Technical Summary
Flatpak xdg-desktop-portal versions before 1.20.4 and 1.21.1 contain a symlink following vulnerability (CWE-61) that enables any Flatpak app to trash arbitrary files on the host system by leveraging a symlink attack on the g_file_trash function. This vulnerability arises from insufficient validation or handling of symbolic links within the file trashing process, potentially allowing unauthorized file deletion. The CVSS 3.1 base score is 2.9, reflecting low severity due to the attack vector requiring local access with high complexity and no privileges. There is no vendor advisory or patch information provided, and no known exploits have been observed.
Potential Impact
An attacker with the ability to run a Flatpak application can exploit this vulnerability to delete files on the host system by tricking the system into trashing files via symbolic links. The impact is limited to file availability (low integrity impact) and does not affect confidentiality or system availability beyond file deletion. The low CVSS score reflects the limited scope and difficulty of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict the installation and execution of untrusted Flatpak applications to reduce risk. Monitor Flatpak and xdg-desktop-portal updates for patches addressing this vulnerability.
CVE-2026-40354: CWE-61 UNIX Symbolic Link (Symlink) Following in Flatpak xdg-desktop-portal
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Flatpak xdg-desktop-portal versions before 1.20.4 and 1.21.1 contain a symlink following vulnerability (CWE-61) that enables any Flatpak app to trash arbitrary files on the host system by leveraging a symlink attack on the g_file_trash function. This vulnerability arises from insufficient validation or handling of symbolic links within the file trashing process, potentially allowing unauthorized file deletion. The CVSS 3.1 base score is 2.9, reflecting low severity due to the attack vector requiring local access with high complexity and no privileges. There is no vendor advisory or patch information provided, and no known exploits have been observed.
Potential Impact
An attacker with the ability to run a Flatpak application can exploit this vulnerability to delete files on the host system by tricking the system into trashing files via symbolic links. The impact is limited to file availability (low integrity impact) and does not affect confidentiality or system availability beyond file deletion. The low CVSS score reflects the limited scope and difficulty of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict the installation and execution of untrusted Flatpak applications to reduce risk. Monitor Flatpak and xdg-desktop-portal updates for patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2026-04-11T00:29:02.889Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d99e6e1cc7ad14da1225aa
Added to database: 4/11/2026, 1:05:50 AM
Last enriched: 4/11/2026, 1:21:35 AM
Last updated: 4/11/2026, 6:02:59 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.