CVE-2026-40354
flatpak: xdg-desktop-portal: Flatpak xdg-desktop-portal: File deletion via symlink attack
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 11, 2026
Updated · July 3, 2026
Description
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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
CWE-59 · Improper Link Resolution Before File Access ('Link Following')