Skip to main content

Flatpak 1.18.6 Fixes Root Exploit and Sandbox Escape

On November 24, 2026, the Flatpak project released version 1.18.6, which fixes two security flaws. One can give a local attacker full root access, and the other lets a harmful app break out of its sandbox. Debian shipped a fixed package for Debian 13 on the same day, so install your system updates.

What it means

Flatpak is a tool that installs and runs desktop apps on Linux. It puts each app in a sandbox, a closed space that limits what the app can see and change on your computer.

Think of a sandbox as a hotel room. The guest can use the room, but walls and locked doors keep them out of the rest of the building. Version 1.18.6 repairs two weak spots in those walls.

The first weak spot works like a delivery worker who leaves a master key behind in your house. During installation, a harmful app could leave a special file on the computer. Anyone who already has access to that computer could then use the file to take full control.

The second is like a hidden door from a guest room into the staff corridor. Through it, a harmful app could leave its sandbox completely. It would not even need to ask for special rights.

Both attacks need a harmful app, or a normal app that an attacker has changed. You cannot always tell when that has happened.

Everyone who uses Flatpak apps is affected. The fix arrives through the normal system updates of your Linux distribution (your version of Linux, such as Debian or Ubuntu). Install those updates as soon as they appear.

Back to top

How to use it

Version 1.18.6 is the new stable release, and the development branch got the same fixes in 1.19.4. Versions 1.18.5 and 1.19.3 also carried the fixes, but their release failed. The two newer versions replace them, so if you build Flatpak yourself, use 1.18.6 or 1.19.4.

Most people do not get Flatpak from the project directly. It comes from their distribution, so the safe path is to update Flatpak through your normal package manager.

Check your version

flatpak --version

This prints the Flatpak version that is installed on your system.

The output shows which branch you use. Be careful, though. Some distributions stay on an older branch and add the fixes to it, and on those systems the version number alone may not tell you whether you are protected.

Debian and Ubuntu

sudo apt update && sudo apt upgrade

This refreshes the package lists and then installs all available updates, including a fixed Flatpak package when your distribution has one.

Debian 13 "trixie" is not on the 1.18 branch. It ships Flatpak 1.16.x. On November 24, 2026, the Debian security team released advisory DSA-6655-1, with the fixed package version 1.16.6-1~deb13u4 for Debian 13. When your package manager shows this version or a newer one, the fix is in place.

Other distributions

On Fedora, Arch Linux, openSUSE and other distributions, use your usual package manager or the graphical update tool. Keep an eye on your distribution's security announcements for the fixed Flatpak version.

Long Term Support systems

Some distributions with Long Term Support (LTS), such as Debian 13, use the older Flatpak 1.16.x branch. The Flatpak developers added the fixes to the 1.16.x code. They will not publish a 1.16 release, though. Every distribution has to build and ship its own fixed package, so on such a system, check that an update has been published.

Updating the Flatpak package is the only documented fix. If you use Flatpak, install that update first.

Back to top

How it works

The release closes two separate vulnerabilities. According to Linuxiac, the first is rated critical and the second high.

CVE-2026-133842: setuid root file from extra-data

Flatpak has a feature called "extra-data". It lets an app, runtime or extension download additional resources at install time. The bug sits in this install path.

An app, runtime or extension that uses extra-data, and that is malicious or compromised, can leave an executable with setuid root permissions on the host. Such a binary runs as root, whichever user starts it. A local attacker who runs the file becomes root, which makes this a local privilege escalation.

Linuxiac reports that only system-wide installations are affected. The attacker needs two things. First, a harmful extra-data package must be installed system-wide. Second, the attacker needs local access to run the file afterward.

The GitHub advisory for this issue is GHSA-p4mw-6jfq-r82r. The release notes credit RoyalOughtness.

CVE-2026-133845: sandbox escape through flatpak-portal

With the flatpak-portal service, a sandboxed app can start new processes inside a subsandbox. When the service spawns such a process, it handles file descriptors incorrectly.

A malicious or compromised app can abuse this file descriptor passing to reach the unfiltered D-Bus session bus. Flatpak normally filters D-Bus traffic, and that filter is part of the sandbox. Once the app talks to the session bus directly, the filter no longer applies. The escape is complete.

The app needs no special permissions for this attack. Giving an app a restrictive permission set does not stop it.

The GitHub advisory is GHSA-5jrj-948r-2wx6. The release notes credit refi64.

Branches and backports

  • 1.18.x (stable): fixed in 1.18.6, release commit 7a986ba.
  • 1.19.x (development): fixed in 1.19.4.
  • 1.18.5 and 1.19.3: these versions contained the fixes, but their release failed, and newer versions replace them.
  • 1.16.x: the fixes are backported to this branch. Upstream no longer maintains it, so no formal 1.16 release will follow. Distribution maintainers must ship the patches themselves. Debian did this for trixie in 1.16.6-1~deb13u4 (DSA-6655-1, by Alberto Garcia).

Version 1.18.6 also repairs a regression in the project's continuous integration (CI) release workflow. It appeared when Ubuntu 26.04 became the default.

Pitfalls for administrators

On distributions that ship 1.16.x, flatpak --version may show the same number after the update. Check the package version in your package manager instead. Machines that several people log in to carry more risk, because the first flaw only needs local access once the harmful package is installed.

Still unclear:

  • Only Linuxiac gives severity ratings. The GitHub release notes and the Debian advisory do not.
  • The sources do not explain why the 1.18.5 and 1.19.3 releases failed.
  • The sources list a fixed package only for Debian, and they describe no workaround.
Back to top

Sources

  1. Flatpak 1.18.6 release notes — GitHub (flatpak/flatpak)
  2. DSA-6655-1 flatpak - security update — Debian security announce
  3. Flatpak 1.18.6 Patches Two Security Vulnerabilities — Linuxiac
Back to top
The welovelinux penguin

The byline of welovelinux news articles. AI helps us write the first draft, and a human editor, Peter Martin, checks every article against its sources before it is published.

Frequently asked questions

Yes. Install the normal system updates of your Linux distribution as soon as they appear. The fix comes through those updates. Most people get Flatpak from their distribution, so updating it with the usual package manager or update tool is the safe path.

Some distributions, such as Debian 13, use the older 1.16.x branch and add the fixes to it. On those systems, flatpak --version may not change. Check the package version in your package manager instead. On Debian 13, the fixed version is 1.16.6-1~deb13u4.

Yes. The second flaw, CVE-2026-133845, needs no special permissions. A harmful app could abuse how the flatpak-portal service passes file descriptors and reach the unfiltered D-Bus session bus. A restrictive permission set for an app does not stop this attack.

The first flaw, CVE-2026-133842, only affects system-wide installations. An attacker needs a harmful extra-data package installed system-wide and local access to run the leftover setuid root file. Machines that several people log in to are therefore more exposed than a computer with one user.