A Flatpak application with no special privileges can trick the flatpak-portal into giving the subsandbox access to one of its own file descriptors.
If the third argument to Spawn() maps two different file descriptors to the same handle, this can result in dup2() failing. Because the dup2() failure is not handled, the result is that the file descriptor that was originally open inside the flatpak-portal is passed to the subsandbox instead. It is reasonably straightforward for an attacker to predict the file descriptor number of the unfiltered D-Bus session bus, which is enough to achieve sandbox escape.
Can be exploited to provide a full sandbox escape from a malicious or compromised Flatpak app.
This was resolved in Flatpak 1.18.6 and 1.19.4. The 1.18.5 and 1.19.3 tags also include the fix, but the release process for those version failed and they were superseded by 1.18.6 and 1.19.4.
Mitigated in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commit:
f107d8a "portal: Exit the child process if mapping fds fails"
More thoroughly fixed in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commits:
07b007e "portal: Rename app_fd, usr_fd variables to indicate that they're variants"
b1b596e "common: Add an object tracking unique fds in a D-Bus message"
a7b55f8 "portal: Use FlatpakUniqueFDList to prevent multiple uses of one fd"
Automated test coverage is provided by commit:
266c6aa "tests: Assert we get an error when mapping >1 handle to the same fd"
Related hardening in flatpak-session-helper (this is not a security fix because anything that can communicate with flatpak-session-helper must already be fully trusted):
d49b78e "session-helper: Use FlatpakUniqueFDList here, too"
Backports of these commits are available in the flatpak-1.16.x branch for LTS distributions that have stayed on that branch, such as Debian 13. This branch is no longer supported upstream and a formal release from it will not be provided.
Avoid installing or running untrusted apps, runtimes or extensions.
See above for commit references.
2026-11-15: first privately reported.
2026-11-24: fix released, advisory released.
Reported by @refi64 ; independently rediscovered before unembargo by @oz9un . Fixes developed by @refi64 and @smcv .
CVE ID allocated by Red Hat CNA.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
