cve.bz

CVE-2026-40354 flatpak xdg-desktop-portal: UNIX Symbolic Link (Symlink) Following

6.3 mediumEPSS 0.1%

Medium (6.3) in flatpak xdg-desktop-portal. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 3rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-61 UNIX Symbolic Link (Symlink) Following
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40354 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40354?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40354?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40354 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Flatpak xdg-desktop-portalbefore 1.20.4
Flatpak xdg-desktop-portalfrom 1.21.0 before 1.21.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13xdg-desktop-portalno fix listedDEBIAN-CVE-2026-40354
Debian14xdg-desktop-portal1.20.4+ds-1DEBIAN-CVE-2026-40354
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 morexdg-desktop-portalno fix listedUBUNTU-CVE-2026-40354
Ubuntu24.04:LTSxdg-desktop-portal1.18.4-1ubuntu2.24.04.2UBUNTU-CVE-2026-40354
Ubuntu25.10xdg-desktop-portal1.20.3+ds-1ubuntu1.1UBUNTU-CVE-2026-40354
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morexdg-desktop-portal1.16.0-150500.3.13.1SUSE-SU-2026:5098-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7xdg-desktop-portal1.18.2-150600.4.6.1SUSE-SU-2026:2712-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10xdg-desktop-portalFix deferred
Red Hat Enterprise Linux 7xdg-desktop-portalFix deferred
Red Hat Enterprise Linux 8xdg-desktop-portalFix deferred
Red Hat Enterprise Linux 9xdg-desktop-portalFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40354.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON