All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-40354

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-20

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 flaw was found in Flatpak xdg-desktop-portal. A malicious Flatpak application can exploit this vulnerability by performing a symbolic link (symlink) attack on the g_file_trash function. This allows the Flatpak application to delete any file on the host system, leading to a denial of service.