CVE-2026-40354
published low CVSS 3.1 · 2.9flatpak: xdg-desktop-portal: Flatpak xdg-desktop-portal: File deletion via symlink attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Flatpak | — | xdg-desktop-portal0 to < 1.20.4 · 1.21.0 to < 1.21.1 · Other versions: unaffected | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3298 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1669 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portalaarch64 | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| Ubuntu | noble | xdg-desktop-portal | Advisory build | 1.18.4-1ubuntu2.24.04.2 | USN-8287-1 |
| Amazon Linux | AL2 | xdg-desktop-portalaarch64 | Listed in advisory | Not stated | ALAS2-2026-3298 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portalppc64le | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portals390x | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
Show 24 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portalx86_64 | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portalaarch64 | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portalppc64le | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portals390x | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portalx86_64 | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| Ubuntu | questing | xdg-desktop-portal | Advisory build | 1.20.3+ds-1ubuntu1.1 | USN-8287-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portal-develaarch64 | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portal-develppc64le | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portal-devels390x | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portal-develx86_64 | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP5 | xdg-desktop-portal-langnoarch | Advisory build | 1.16.0-150500.3.13.1 | SUSE-SU-2026:5098-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portal-develaarch64 | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portal-develppc64le | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portal-devels390x | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portal-develx86_64 | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| SUSE / openSUSE | SLE-15-SP7 | xdg-desktop-portal-langnoarch | Advisory build | 1.18.2-150600.4.6.1 | SUSE-SU-2026:2712-1 |
| Ubuntu | noble | xdg-desktop-portal-tests | Advisory build | 1.18.4-1ubuntu2.24.04.2 | USN-8287-1 |
| Ubuntu | questing | xdg-desktop-portal-tests | Advisory build | 1.20.3+ds-1ubuntu1.1 | USN-8287-1 |
| Amazon Linux | AL2 | xdg-desktop-portali686 | Listed in advisory | Not stated | ALAS2-2026-3298 |
| Amazon Linux | AL2 | xdg-desktop-portalsrc | Listed in advisory | Not stated | ALAS2-2026-3298 |
| Amazon Linux | AL2 | xdg-desktop-portalx86_64 | Listed in advisory | Not stated | ALAS2-2026-3298 |
| Amazon Linux | AL2023 | xdg-desktop-portalaarch64 | Listed in advisory | Not stated | ALAS2023-2026-1669 |
| Amazon Linux | AL2023 | xdg-desktop-portalsrc | Listed in advisory | Not stated | ALAS2023-2026-1669 |
| Amazon Linux | AL2023 | xdg-desktop-portalx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1669 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.9 / 10
- Severity
- low
- Provider
- mitre · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Flatpak | xdg-desktop-portal | 0 to < 1.20.4 (affected · semver)1.21.0 to < 1.21.1 (affected · semver)Default: unaffected | mitre · cna |
Weaknesses
1- CWE-61 CWE-61 UNIX Symbolic Link (Symlink) Following
References
4Provider assertions
2mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 17fb605e28fe5984697af48dd826347502fcb215f054faeeb30b944b010b1123
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record