CVE catalog

CVE-2026-40354

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.

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.13% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianxdg-desktop-portalsid1.22.1+ds-1fixed
Debianxdg-desktop-portalforky1.22.1+ds-1fixed
Debianxdg-desktop-portaltrixie1.20.3+ds-1vulnerable
Debianxdg-desktop-portalbookworm1.16.0-2vulnerable
Cpexdg-desktop-portalNot reported1.18.4-1ubuntu2.24.04.2fixed
Cpexdg-desktop-portal-devNot reported1.18.4-1ubuntu2.24.04.2fixed
Cpexdg-desktop-portal-testsNot reported1.18.4-1ubuntu2.24.04.2fixed
Cpexdg-desktop-portalNot reportedNot reportedvulnerable
Cpexdg-desktop-portalNot reported1.20.4fixed
Cpexdg-desktop-portalNot reportedNot reportedunknown
Susexdg-desktop-portallinux enterprise module for desktop applications 15 sp71.18.2-150600.4.6.1fixed
Ubuntuxdg-desktop-portal24.041.18.0-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu3vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu4vulnerable
Ubuntuxdg-desktop-portal24.041.18.3-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2.24.04.1vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2.24.04.2fixed
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu1vulnerable
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu2vulnerable
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu3vulnerable
Ubuntuxdg-desktop-portal25.101.20.3+ds-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal25.101.20.3+ds-1ubuntu1.1fixed
Ubuntuxdg-desktop-portal16.041.0.3-0ubuntu0.0vulnerable
Ubuntuxdg-desktop-portal18.040.8-2vulnerable
Ubuntuxdg-desktop-portal18.040.8-3vulnerable
Ubuntuxdg-desktop-portal18.040.9-1vulnerable
Ubuntuxdg-desktop-portal18.040.9-2vulnerable
Ubuntuxdg-desktop-portal18.040.10-0ubuntu1vulnerable
Ubuntuxdg-desktop-portal18.040.10-2vulnerable
Ubuntuxdg-desktop-portal18.040.10-4vulnerable
Ubuntuxdg-desktop-portal18.040.11-1vulnerable
Ubuntuxdg-desktop-portal18.041.0.3-0ubuntu0.2vulnerable
Ubuntuxdg-desktop-portal20.041.4.2-2vulnerable
Ubuntuxdg-desktop-portal20.041.4.2-3vulnerable
Ubuntuxdg-desktop-portal20.041.6.0-1vulnerable
Ubuntuxdg-desktop-portal20.041.6.0-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal20.041.6.0-1ubuntu2vulnerable
Ubuntuxdg-desktop-portal22.041.8.1-1build1vulnerable
Ubuntuxdg-desktop-portal22.041.10.1-2vulnerable
Ubuntuxdg-desktop-portal22.041.10.1-4vulnerable
Ubuntuxdg-desktop-portal22.041.12.1-1vulnerable
Ubuntuxdg-desktop-portal22.041.12.1-1build1vulnerable
Ubuntuxdg-desktop-portal22.041.12.1-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal22.041.14.1-1vulnerable
Ubuntuxdg-desktop-portal22.041.14.1-2vulnerable
Ubuntuxdg-desktop-portal22.041.14.2-1vulnerable
Ubuntuxdg-desktop-portal22.041.14.2-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal22.041.14.2-1ubuntu2vulnerable
Ubuntuxdg-desktop-portal22.041.14.3-0ubuntu2vulnerable
Ubuntuxdg-desktop-portal22.041.14.3-0ubuntu2.22.04.1vulnerable
Ubuntuxdg-desktop-portal22.041.14.4-1ubuntu1~22.04.1vulnerable
Ubuntuxdg-desktop-portal22.041.14.4-1ubuntu2~22.04.1vulnerable
Ubuntuxdg-desktop-portal22.041.14.4-1ubuntu2~22.04.2vulnerable
Ubuntuxdg-desktop-portal24.041.18.0-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu3vulnerable
Ubuntuxdg-desktop-portal24.041.18.2-1ubuntu4vulnerable
Ubuntuxdg-desktop-portal24.041.18.3-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2.24.04.1vulnerable
Ubuntuxdg-desktop-portal24.041.18.4-1ubuntu2.24.04.2fixed
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu1vulnerable
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu2vulnerable
Ubuntuxdg-desktop-portal25.101.20.0+ds-2ubuntu3vulnerable
Ubuntuxdg-desktop-portal25.101.20.3+ds-1ubuntu1vulnerable
Ubuntuxdg-desktop-portal25.101.20.3+ds-1ubuntu1.1fixed
Cpexdg-desktop-portalNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianxdg-desktop-portalsourcesid1.20.4+ds-1not yet assignedNot reported[1132958]
Debianxdg-desktop-portalsourceforky1.20.4+ds-1not yet assignedNot reported[1132958]
Debianxdg-desktop-portalsourcetrixie(unfixed)not yet assignedNot reported[1132958]
Debianxdg-desktop-portalsourcebookworm(unfixed)not yet assignedNot reported[1132958]
Cpexdg-desktop-portalcpeNot reported1.18.4-1ubuntu2.24.04.2Not reportedNot reportedNot reported
Cpexdg-desktop-portal-devcpeNot reported1.18.4-1ubuntu2.24.04.2Not reportedNot reportedNot reported
Cpexdg-desktop-portal-testscpeNot reported1.18.4-1ubuntu2.24.04.2Not reportedNot reportedNot reported
Cpexdg-desktop-portalcpeNot reported1.20.4Not reportedNot reportedNot reported
Susexdg-desktop-portalrpmlinux enterprise module for desktop applications 15 sp71.18.2-150600.4.6.1Not reportedSUSE-SU-2026:2712-1Not reported
Ubuntuxdg-desktop-portaldeb24.041.18.4-1ubuntu2.24.04.2Not reportedUSN-8287-1Not reported
Ubuntuxdg-desktop-portaldeb25.101.20.3+ds-1ubuntu1.1Not reportedUSN-8287-1Not reported
Ubuntuxdg-desktop-portaldeb24.041.18.4-1ubuntu2.24.04.2Not reportedUBUNTU-CVE-2026-40354Not reported
Ubuntuxdg-desktop-portaldeb25.101.20.3+ds-1ubuntu1.1Not reportedUBUNTU-CVE-2026-40354Not reported

[Debian bug #1132958]

Notes

[trixie] xdg-desktop-portal: Minor issue; can be fixed via point release [bookworm] xdg-desktop-portal: Minor issue; can be fixed via point release

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.16.0-2 · amd64 · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

    • 1.16.0-2 · arm64 · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

  • Source package: [xdg-desktop-portal]

    Details (2)
    • 1.16.0-2 · all · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

    • 1.16.0-2 · all · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

  • Source package: [xdg-desktop-portal]

    Details (2)
    • 1.16.0-2 · amd64 · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

    • 1.16.0-2 · arm64 · bookworm

      Affected

      nvd · xdg-desktop-portal · debian · bookworm; nvd · xdg-desktop-portal · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1.20.3+ds-1 · amd64 · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

    • 1.20.3+ds-1 · arm64 · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

  • Source package: [xdg-desktop-portal]

    Details (2)
    • 1.20.3+ds-1 · all · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

    • 1.20.3+ds-1 · all · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

  • Source package: [xdg-desktop-portal]

    Details (2)
    • 1.20.3+ds-1 · amd64 · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

    • 1.20.3+ds-1 · arm64 · trixie

      Affected

      nvd · xdg-desktop-portal · debian · 13

Observed:

References