CVE-2026-133842
Description
A flaw was found in Flatpak’s flatpak-system-helper. When a system-wide app, runtime, or extension uses the extra-data mechanism and its apply_extra logic creates a deeply nested directory tree, permission canonicalization can fail (for example with EMFILE). Affected Flatpak versions can still report success without clearing setuid/setgid bits, leaving a setuid-root executable under /var/lib/flatpak. A local attacker who can install or update such content system-wide, or who can already execute code as a local user in cooperation with that content, can escalate privileges to root.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-133842 NameCVE-2026-133842 DescriptionA flaw was found in Flatpak’s flatpak-system-helper. When a system-wide app, runtime, or extension uses the extra-data mechanism and its apply_extra logic creates a deeply nested directory tree, permission canonicalization can fail (for example with EMFILE). Affected Flatpak versions can still report success without clearing setuid/setgid bits,…
CVE-2026-133842
| Name | CVE-2026-133842 |
| Description | A flaw was found in Flatpak’s flatpak-system-helper. When a system-wide app, runtime, or extension uses the extra-data mechanism and its apply_extra logic creates a deeply nested directory tree, permission canonicalization can fail (for example with EMFILE). Affected Flatpak versions can still report success without clearing setuid/setgid bits, leaving a setuid-root executable under /var/lib/flatpak. A local attacker who can install or update such content system-wide, or who can already execute code as a local user in cooperation with that content, can escalate privileges to root. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6655-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| flatpak (PTS) | bookworm, bookworm (security) | 1.14.10-1~deb12u2 | vulnerable |
| trixie | 1.16.6-1~deb13u3 | vulnerable | |
| trixie (security) | 1.16.6-1~deb13u4 | fixed | |
| forky, sid | 1.18.6-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| flatpak | source | trixie | 1.16.6-1~deb13u4 | DSA-6655-1 | ||
| flatpak | source | (unstable) | 1.18.6-1 |
Notes
https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r
Fixed by: https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c (1.18.5)
Fixed by: https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8 (1.18.5)
Tests: https://github.com/flatpak/flatpak/commit/2988601140bf8484cf256b66c48b254466a81107 (1.18.5)
Tests: https://github.com/flatpak/flatpak/commit/ab4a20d543109684de44a75df13ada9b1d69e149 (1.18.5)
Apply commands
https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82rFixed by: https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c (1.18.5)Fixed by: https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8 (1.18.5)Tests: https://github.com/flatpak/flatpak/commit/2988601140bf8484cf256b66c48b254466a81107 (1.18.5)Tests: https://github.com/flatpak/flatpak/commit/ab4a20d543109684de44a75df13ada9b1d69e149 (1.18.5)
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | flatpak |
Fixed | 1.16.6-1~deb13u4 |
| sid | flatpak |
Fixed | 1.18.6-1 |
| forky | flatpak |
Fixed | 1.18.6-1 |
| bookworm | flatpak |
Affected | — |
Alpine Fixed 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| v3.24 | flatpak |
Fixed | 1.16.6_git20261120-r0 |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
References
- https://security-tracker.debian.org/tracker/CVE-2026-133842
- https://security.alpinelinux.org/vuln/CVE-2026-133842
- https://pkgs.alpinelinux.org/packages?name=flatpak
- https://access.redhat.com/security/cve/CVE-2026-133842
- https://bugzilla.redhat.com/show_bug.cgi?id=2585329
- https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8
- https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c
- https://github.com/flatpak/flatpak/releases/tag/1.18.6
- https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r
- https://www.openwall.com/lists/oss-security/2026/11/24/15
- https://www.suse.com/security/cve/CVE-2026-133842.html
CWEs
CWE-281
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.