CVE-2026-40354
Received
Received - Intake
Symlink Attack in Flatpak xdg-desktop-portal Enables File Deletion
Publication date: 2026-04-11
Last updated on: 2026-04-27
Assigner: MITRE
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| flatpak | xdg-desktop-portal | to 1.20.4 (exc) |
| flatpak | xdg-desktop-portal | 1.21.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-61 | The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files. |