CVE-2026-40354

flatpak: xdg-desktop-portal: Flatpak xdg-desktop-portal: File deletion via symlink attack

Published Apr 11, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8287-1 XDG Desktop Portal vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:flatpak:xdg-desktop-portal:*:*:*:*:*:*:*:*
cpe:2.3:a:flatpak:xdg-desktop-portal:1.21.0:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title File Deletion via Symlink Attack in Flatpak XDG Desktop Portal flatpak: xdg-desktop-portal: Flatpak xdg-desktop-portal: File deletion via symlink attack
Weaknesses CWE-59
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Title File Deletion via Symlink Attack in Flatpak XDG Desktop Portal
Type Values Removed Values Added
First Time appeared Flatpak
Flatpak xdg-desktop-portal
Vendors & Products Flatpak
Flatpak xdg-desktop-portal
Type Values Removed Values Added
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.
Weaknesses CWE-61
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 15, 2026, 3:14 PM
Reserved
Apr 11, 2026, 12:29 AM
Status
Analyzed
Published
Apr 11, 2026, 1:16 AM
Modified
Oct 26, 2026, 9:10 PM
Severity
Moderate
Public date
Apr 11, 2026, 12:29 AM