CVE-2026-133842Flatpak all
NVD
Vulnerability Summary
Summary If an app, runtime or extension installed system-wide uses the extra-data mechanism, and its `apply_extra` program or script creates a very deeply-nested directory hierarchy, then it can arrange for `/var/lib/flatpak` to contain a setuid-root executable whose setuid permission will not be cleared by Flatpak. Impact A malicious local user, in cooperation with a compromised or malicious app/runtime/extension, can use the setuid-root executable for root privilege escalation. Or, if the app/runtime/extension itself has permissions that grant it the ability to run arbitrary code as the user, then it can escalate its own privileges to root. Or, if the app/runtime/extension combines this vulnerability with any unrelated vulnerability that provides arbitrary code execution as the user, then it can escalate its own privileges to root. Solution 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. Fixed in Flatpak 1.18.6 (stable branch) and 1.19.4 (development branch) by commits: https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c "utils: Fail closed if canonicalizing permissions can't open directory" https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8 "utils: Fail closed when canonicalizing permissions if readdir() fails" Automated test coverage is provided by commits: https://github.com/flatpak/flatpak/commit/2988601140bf8484cf256b66c48b254466a81107 "tests: Test deeply nested files in apply_extra output" https://github.com/flatpak/flatpak/commit/ab4a20d543109684de44a75df13ada9b1d69e149 "tests: Assert that extra-data can't normally contain setuid/setgid files" 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. Limitations In the solution as currently implemented, attempts to exploit this vulnerability will leave behind a directory named similar to `/var/lib/flatpak/app/$APP/$ARCH/$BRANCH/.$HASH-XXXXXX` that still contains a setuid/setgid executable below the `files/extra/` subdirectory, but the permissions of the `files/extra` subdirectory will be set so that the setuid/setgid executable is inaccessible for non-root users, preventing it from being used for privilege escalation. This limitation is tracked as https://github.com/flatpak/flatpak/issues/6991. Mitigations By default only root-equivalent users are allowed to install Flatpak apps system-wide, so they have the opportunity to consider whether they trust the author and publisher of the app. Other users can only update apps that are already installed. Workarounds Avoid installing untrusted apps, runtimes or extensions system-wide, even if they will only be run by unprivileged users. Do not change the polkit rules for Flatpak to allow untrusted local users to install apps, runtimes or extensions system-wide. Credit Reported by @RoyalOughtness, fixes developed by @smcv. CVE ID obtained from Red Hat CNA.
Affected & Patched Versions
- Flatpak all < 1.18.5; 1.19.x < 1.19.3
- Flatpak 1.18.6, 1.19.4
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.
- Check whether you run Flatpak all and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 24, 2026Published
- Nov 24, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Flatpak all CVEsYou are reading CVE-2026-133842. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 20:01 UTC