Summary
A flaw (CWE-281, Improper Preservation of Permissions) was found in 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 (e.g. with EMFILE). Affected Flatpak versions still report success without clearing setuid/setgid bits, leaving a setuid-root executable under /var/lib/flatpak.
CVSS 8.2 (High): the attack is local, low complexity, requires a low-privileged logged-in user and user interaction (e.g. installing or updating content). Scope is changed, with high impact on confidentiality, integrity and availability. An attacker who can install or update such content system-wide, or who already runs code as a local user in cooperation with that content, can escalate to root.
The vulnerability is not in the CISA KEV catalog; the EPSS exploitation probability is low (about 0.2%).
Who is affected
Organizations running Flatpak on Red Hat Enterprise Linux 7, 8, 9 and 10 and Red Hat OpenShift Container Platform 5, especially multi-user systems with system-wide Flatpak installations.
What to do
- Track the official Red Hat advisory (access.redhat.com/security/cve/CVE-2026-133842) and apply updated Flatpak packages once available; fixed RHEL versions are not listed in the record. Upstream Flatpak 1.18.6 contains the fixes (GHSA-p4mw-6jfq-r82r).
- Workaround: do not install untrusted apps, runtimes, or extensions system-wide.
- Keep the default Flatpak polkit rules so only root-equivalent users can perform system-wide installs; verify the rules have not been relaxed.
- Check exposure: list system-wide installations with 'flatpak list --system' and look for unexpected setuid/setgid files under /var/lib/flatpak.
Vendor workaround
Do not install untrusted apps, runtimes, or extensions system-wide. Keep default Flatpak polkit rules so only root-equivalent users can perform system-wide installs.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Required
- Scope
- Affects other components
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-281 Improper Preservation of Permissions
References
- access.redhat.com/security/cve/CVE-2026-133842
- bugzilla.redhat.com/show_bug.cgi?id=2585329
- github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8
- github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c
- github.com/flatpak/flatpak/releases/tag/1.18.6
- github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r
- www.openwall.com/lists/oss-security/2026/11/24/15
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.