ZeroHour

CVE-2026-90616

mass

Symlink escape in Flatpak before 1.18.1 lets sandboxed apps read/write host files

CVSS 3.1
7.4 high
EPSS
Published
()
Modified
AI analysis

Flatpak versions before 1.18.1 fail to apply symlink protection when creating per-app data directories such as /var/cache, /var/data, /var/config, and /var/tmp inside each sandbox on every app launch. Because components of the host-side mount path (e.g., ~/.var/app/APP_ID/cache/tmp) are attacker-controlled, a malicious sandboxed app can plant symlinks that redirect where these directories are bind-mounted. The path is passed through bwrap --bind to the kernel, which follows symlinks, so the attacker-chosen target on the host becomes mounted inside the sandbox. This yields arbitrary file read and write access on the host, which can be escalated to arbitrary code execution outside the sandbox (CVSS 3.1: 7.4, CWE-61; a distinct issue from CVE-2026-76925). Any Linux system running Flatpak before 1.18.1 is affected, but exploitation requires the victim to have installed the attacker's malicious Flatpak app; no public PoC, KEV listing, or in-the-wild exploitation is known.

What to do: Upgrade to Flatpak 1.18.1 or later as soon as your distribution ships it, applying distro security backports where 1.18.1 is not yet packaged. Until patched, restrict installs to trusted remotes and verified Flathub publishers and remove any Flatpak apps from unverified sources. Inspect ~/.var/app/APP_ID/ directories for unexpected symlinks pointing outside the app's data tree, which would indicate a malicious app attempting this technique.

Affected
Flatpakbefore 1.18.1 (all versions < 1.18.1)
Estimated exposure
masstens of millions of Linux desktops and devices potentially affected (Flatpak is preinstalled on major distributions and the Steam Deck) — Flatpak is bundled by default on widely deployed Linux desktop distributions (e.g., Linux Mint, Fedora Silverblue, Endless OS, Pop!_OS) and on Valve's Steam Deck (millions of units sold), with Flathub serving millions of app installs, so…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In Flatpak before 1.18.1, a malicious sandboxed app can obtain arbitrary read and write access to files on the host, which can be escalated to arbitrary code execution on the host, a different vulnerability than CVE-2026-76925. Flatpak creates a few app data directories (e.g., /var/cache, /var/data, /var/config, and /var/tmp) in every sandbox on every app launch where, in some cases, components of the path are attacker-controlled. Missing symlink protection can redirect the directories. Some of these directories are bind-mounted by Flatpak by passing the path (e.g., /home/user/.var/app/APP_ID/cache/tmp), which contains attacker-controlled directories (tmp) to bwrap --bind SRC DST. bwrap passes the path on to the kernel, which then follows symlinks. A malicious symlink can point to arbitrary locations on the host and it will become mounted inside the sandbox.

Weakness
CWE-61
Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.