Description
XDG Desktop Portal is a desktop integration portal. Prior to version 1.22.1, malicious sandboxed applications can use the FileChooser.SaveFiles method to gain arbitrary file access to non-existing files on the host (limited to files the user has access to). The FileChooser.SaveFiles method takes optional filenames which get appended to the selected directory by backends. The backends are supposed to check that the file does not exist yet. The filenames are not validated by the frontend and also not by common backends. This issue has been patched in version 1.22.1.
Published: 2026-10-23
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: File Path Traversal leading to arbitrary file access
Action: Immediate Patch
AI Analysis

Impact

Prior to version 1.22.1, sandboxed applications can invoke the FileChooser.SaveFiles method of the XDG Desktop Portal to specify arbitrary filenames. Because the frontend does not validate these names and backends rely on an existence check that is not performed, an attacker can request files that do not yet exist and the portal will attempt to create them in a user‑specified directory. This allows the creation or modification of any file that the logged‑in user can access, effectively giving the sandboxed app the same file‑system privileges as the host user. The weakness is a path traversal flaw (CWE‑22).

Affected Systems

The affected product is the Flatpak XDG Desktop Portal. Versions earlier than 1.22.1 are vulnerable; the issue was fixed in 1.22.1.

Risk and Exploitability

The CVSS score is 8.8, indicating high severity. EPSS is not available, and the vulnerability is not listed in CISA KEV. The most probable attack vector involves a malicious sandboxed application exploiting the FileChooser.SaveFiles API; no special network or privileged access is required beyond the ability to run a sandboxed app. Once the path traversal succeeds, the attacker can create arbitrary files in the target’s directory space.

Generated by OpenCVE AI on October 23, 2026 at 13:50 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade XDG Desktop Portal to version 1.22.1 or later.
  • Ensure that all Flatpak applications are using the latest portal version to prevent using the vulnerable API.
  • As a temporary measure, restrict or disable the FileChooser.SaveFiles method in the portal or adjust sandbox policies to limit file creation paths.

Generated by OpenCVE AI on October 23, 2026 at 13:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
First Time appeared Flatpak
Flatpak xdg-desktop-portal
Vendors & Products Flatpak
Flatpak xdg-desktop-portal

Fri, 23 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description XDG Desktop Portal is a desktop integration portal. Prior to version 1.22.1, malicious sandboxed applications can use the FileChooser.SaveFiles method to gain arbitrary file access to non-existing files on the host (limited to files the user has access to). The FileChooser.SaveFiles method takes optional filenames which get appended to the selected directory by backends. The backends are supposed to check that the file does not exist yet. The filenames are not validated by the frontend and also not by common backends. This issue has been patched in version 1.22.1.
Title XDG Desktop Portal: Arbitrary file access via SaveFiles "files" option path traversal
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Flatpak Xdg-desktop-portal
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-23T12:35:23.077Z

Reserved: 2026-06-17T16:59:42.760Z

Link: CVE-2026-55888

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-23T13:17:10.090

Modified: 2026-10-23T13:17:10.090

Link: CVE-2026-55888

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T14:00:18Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')