CVE Vulnerabilities

CVE-2026-40354

UNIX Symbolic Link (Symlink) Following

Published: Apr 11, 2026 | Modified: Apr 27, 2026
CVSS 3.x
6.3
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.1 MODERATE
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

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.

Affected Software

NameVendorStart VersionEnd Version
Xdg-desktop-portalFlatpak*1.20.4 (excluding)
Xdg-desktop-portalFlatpak1.21.0 (including)1.21.0 (including)
Xdg-desktop-portalUbuntuesm-infra-legacy/xenial*
Xdg-desktop-portalUbuntuesm-infra/bionic*
Xdg-desktop-portalUbuntuesm-infra/focal*
Xdg-desktop-portalUbuntuesm-infra/xenial*
Xdg-desktop-portalUbuntujammy*
Xdg-desktop-portalUbuntunoble*
Xdg-desktop-portalUbuntuquesting*
Xdg-desktop-portalUbuntuupstream*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References