Flatpak: Complete Sandbox Escape — patch available, upgrade advised

What happened?
It has been reported that a flaw in Flatpak’s portal handling can let apps break out of their sandbox. The portal accepted paths in the sandbox-expose options that could be app-controlled symlinks pointing at arbitrary host locations; when Flatpak run resolved and mounted those paths, the sandbox ended up with direct access to host files — and, worse, a primitive for executing code in the host context. In short: a sandbox promise was circumvented.
Impact
This is not a corner case. The advisory states that, as exploited, every Flatpak application could read and write arbitrary files on the host and could be used to gain code execution outside the sandbox. The issue is tracked in Flatpak’s GitHub security advisory and has been patched in version 1.16.4; an additional fix will be included in the upcoming 1.18.0 release. If you rely on Flatpak for safer app isolation, this stings.
What to do
Upgrade Flatpak to 1.16.4 (or later) as soon as your distribution packages it. It has been reported that disabling the Flatpak portal mitigates the issue, but that comes at a cost: apps that expect portal functionality may misbehave or lose features. If you manage systems centrally, prioritize the patch and audit Flatpak app sources until your environment is back to normal.
Why this matters
Sandboxing is the whole point of Flatpak for many users — a boundary between desktop apps and your personal files. When that boundary goes missing, trust evaporates fast. This bug is a blunt reminder that desktop containerization is still being hardened; keep your systems patched and your eyes open.
Sources: github.com/flatpak, Lobsters
Comments