While I was surfing on the internet, I came across multiple websites that claim that the sandbox of flatpak is insecure as it can be bypassed. Is that true as of 2026?
First website: Flatpak Permissions on Upgrade, Unravelled | Eric Anderson
Claim: Flatpaks can obtain new permission automatically when they are updated. (I am unsure what the “Relatively small beans” section is talking about though"
Note: I am unsure if the claim also applies to permissions that have been manually overriden/disabled via flatseal.
Second website: Flatpak: "home" access allows trivial privilege escalation, what to do instead
Claim (What I have understood at least): D Vitamin said that if Nautilus is installed, and the app has this permission --talk-name=org.freedesktop.FileManager1 , they can call something named “the dbus method of Nautilus” to for example replace the real ~/.bashrc with another bashrc file that the app created. The comment suggests in my opinion at least that this works regardless of the --filesystem=home permission.
Third website: https://flatkill.org/
Claim: It claims the following:
1- Flatpak apps with the --filesystem=home permission can simply just rewrite ~/.bashrc if they want (Although if that is true then it wouldn’t be a major problem for me as I always remove that permission anyways)
2- “Official applications and runtimes are vulnerable to known easily-exploitable code execution vulnerabilities, some of the vulnerabilities have been known (and fixed in distributions but not in flatpak) for half a year.”
3- “Up until 0.8.7 all it took to get root on the host was to install a flatpak package that contains a suid binary (flatpaks are installed to /var/lib/flatpak on your host system). Again, could this be any easier? A high severity CVE-2017-9780 (CVSS Score 7.2) has indeed been assigned to this vulnerability. Flatpak developers consider this a minor security issue.”
Finally, I have a question. Using Flatseal (or the terminal if Flatseal has no such feature), Can I remove an app’s permission to access specific files (like for example allow --filesystem=home but exclude ~/.bashrc or exclude important partitions)?