Skip to main content
Vulnerability Database/CVE-2026-92162

CVE-2026-92162: Flatpak Privilege Escalation Vulnerability

CVE-2026-92162 is a privilege escalation vulnerability in Flatpak that allows malicious local users to create root-owned directories outside intended locations. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-92162 Overview

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. Versions prior to 1.18.1 contain a path traversal flaw [CWE-22] in the flatpak-system-helper D-Bus service. On systems with at least one Open Container Initiative (OCI) remote configured, which is common on Fedora, a local user in an active session can supply a crafted architecture name to make the helper create root-owned directory trees, a lock file, and an icons directory outside the intended root directory. Chained with other issues also fixed in 1.18.1, this behavior can enable local root privilege escalation.

Critical Impact

Local attackers on Fedora-like systems with OCI remotes configured can plant root-owned filesystem artifacts outside the Flatpak install root and, when combined with other 1.18.1 fixes, escalate to root.

Affected Products

  • Flatpak versions prior to 1.18.1
  • Linux distributions shipping Flatpak with OCI remotes (notably Fedora)
  • flatpak-system-helper D-Bus service component

Discovery Timeline

  • 2026-10-20 - CVE-2026-92162 published to the National Vulnerability Database
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-92162

Vulnerability Analysis

The flaw resides in flatpak-system-helper, a privileged D-Bus service invoked by unprivileged Flatpak clients. The helper accepts an architecture argument alongside references to OCI remotes but does not validate the string against Flatpak's allowed character set. An attacker can supply an architecture value containing path separators or traversal sequences, which the helper then concatenates into filesystem paths used while fetching and extracting content from the configured OCI remote.

Because the helper runs as root, any resulting directory tree, lock file, and icons directory are created with root ownership outside the intended install root. The vulnerability is scoped to systems with OCI remotes; on installations with only OSTree remotes the vulnerable code path is not reached. Chaining this primitive with the other issues patched in 1.18.1 yields a full local privilege escalation path to root.

Root Cause

The root cause is missing input validation on remote name and architecture parameters passed over D-Bus into the system helper. Neither flatpak_is_valid_remote_name nor an equivalent architecture check was enforced before the values were used in path construction, violating the trust boundary between the unprivileged caller and the root-owned helper.

Attack Vector

Exploitation requires local access with an active session on a system where an OCI remote has been configured. The attacker crafts a D-Bus request to flatpak-system-helper containing a reference whose architecture component embeds traversal sequences, inducing the helper to materialize attacker-controlled content at an arbitrary filesystem location as root.

c
       return G_DBUS_METHOD_INVOCATION_HANDLED;
     }
 
+  ref = flatpak_decomposed_new_from_ref (arg_ref, &error);
+  if (ref == NULL)
+    {
+      g_dbus_method_invocation_return_gerror (invocation, error);
+      return G_DBUS_METHOD_INVOCATION_HANDLED;
+    }
+
+  if (!flatpak_is_valid_remote_name (arg_origin, -1, &error))
+    {
+      g_dbus_method_invocation_return_gerror (invocation, error);
+      return G_DBUS_METHOD_INVOCATION_HANDLED;
+    }
+
   if (strlen (arg_repo_path) > 0)
     {
       g_autoptr(GError) local_error = NULL;

Source: Flatpak Commit 01773f8. The patch validates the decomposed ref and the origin remote name before the helper performs any privileged filesystem work.

Detection Methods for CVE-2026-92162

Indicators of Compromise

  • Unexpected root-owned directory trees, lock files, or icons directories created outside /var/lib/flatpak or the configured system installation root.
  • D-Bus calls to org.freedesktop.Flatpak.SystemHelper from non-administrative users containing unusual architecture strings with / or .. sequences.
  • New filesystem artifacts appearing immediately after flatpak client invocations by unprivileged users on Fedora-like systems.

Detection Strategies

  • Audit D-Bus message traffic to flatpak-system-helper and alert on arg_ref or architecture values that fail Flatpak's naming rules.
  • Monitor privileged file creation events on Linux endpoints using auditd rules for root-owned writes outside expected Flatpak directories.
  • Correlate flatpak remote-list output showing OCI-type remotes with installed Flatpak package versions below 1.18.1 to identify exposed hosts.

Monitoring Recommendations

  • Enable auditd watches on /var/lib/flatpak and parent directories to log any root-owned writes performed by flatpak-system-helper.
  • Collect systemd journal entries for the flatpak-system-helper unit and alert on repeated invalid-name errors introduced by the 1.18.1 validators.
  • Track process ancestry linking unprivileged user sessions to privileged flatpak-system-helper activity across the fleet.

How to Mitigate CVE-2026-92162

Immediate Actions Required

  • Upgrade Flatpak to version 1.18.1 or later on all Linux endpoints, prioritizing Fedora and derivatives.
  • Inventory systems using flatpak remotes --show-details and identify any remote whose type is oci, since only those are exposed to this issue.
  • Restrict interactive local access on multi-user systems until the patch is deployed.

Patch Information

Flatpak 1.18.1 resolves CVE-2026-92162 by adding strict validation of the remote name and ref/architecture arguments in flatpak-system-helper. Review the upstream fixes in Flatpak Commit 01773f8, Flatpak Commit 19456b9, Flatpak Commit aeb369a, Flatpak Pull Request #6768, and the GitHub Security Advisory GHSA-v2gw-v9h5-9q4x.

Workarounds

  • Remove OCI-type remotes with flatpak remote-delete <name> where business requirements allow, since the issue is not reachable without an OCI remote.
  • Limit which users may invoke the system helper by tightening Polkit rules for org.freedesktop.Flatpak actions.
  • Prefer per-user installations (flatpak --user install) that do not call into the privileged system helper.
bash
# Verify installed Flatpak version and configured remote types
flatpak --version
flatpak remotes --show-details | awk '/^Name|Collection|Url|Type/'

# Remove an OCI remote that is not required
sudo flatpak remote-delete <oci-remote-name>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.