Red Hat root privilege escalation in flatpak-system-helper
Affects Flatpak system-wide installs that use the extra-data mechanism on Red Hat Enterprise Linux 7, 8, 9 and 10, and OpenShift Container Platform 5. Fixed in Flatpak 1.18.6 and 1.19.4.
- Exploited
- No known exploitation
- Fix
- Fixed in 1.18.6, 1.19.4
- Who is exposed
- Specific setups only
Summary
In Flatpak's flatpak-system-helper, as shipped in Red Hat Enterprise Linux 7, 8, 9, and 10 and Red Hat OpenShift Container Platform, a system-wide app, runtime, or extension using extra-data can leave a setuid-root executable under /var/lib/flatpak. A local attacker who can install or update such content system-wide, or who can already run code as a local user in cooperation with that content, can escalate privileges to root, and the attack requires user action.
Written by a model
Original 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.
Who should check
Teams running system-wide Flatpak installs on Red Hat Enterprise Linux or OpenShift, using Flatpak versions before 1.18.6 or 1.19.4.
“Affected Flatpak versions can still report success without clearing setuid/setgid bits”
What to do
Check whether your setup matches what the bug needs.
App, runtime or extension is installed system-wide and uses the Flatpak extra-data mechanism Its apply_extra logic creates a deeply nested directory tree, so permission canonicalization fails (for example with EMFILE)Upgrade to a fixed version: 1.18.6, 1.19.4.
Workaround: Do not install untrusted apps, runtimes, or extensions system-wide.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-133842 (Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfile), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-133842 (entry last updated 2026-11-27):
Affected:
- Red Hat Red Hat Enterprise Linux 10: version range not reported
- Red Hat Red Hat Enterprise Linux 7: version range not reported
- Red Hat Red Hat Enterprise Linux 8: version range not reported
- Red Hat Red Hat Enterprise Linux 9: version range not reported
- Red Hat Red Hat OpenShift Container Platform 5: version range not reported
Fixed versions: 1.18.6, 1.19.4.
Conditions (all must be true for the bug to be hit):
- App, runtime or extension is installed system-wide and uses the Flatpak extra-data mechanism (source: https://access.redhat.com/security/cve/cve-2026-133842)
- Its apply_extra logic creates a deeply nested directory tree, so permission canonicalization fails (for example with EMFILE) (source: https://access.redhat.com/security/cve/cve-2026-133842)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, a user action.
Workaround: Do not install untrusted apps, runtimes, or extensions system-wide. (source: https://bugzilla.redhat.com/show_bug.cgi?id=2585329)
CISA KEV: CVE-2026-133842 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-133842 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://bugzilla.redhat.com/show_bug.cgi?id=2585329
- https://access.redhat.com/security/cve/CVE-2026-133842
- 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://access.redhat.com/security/cve/cve-2026-133842
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-133842
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-133842"}.Affected versions
- flatpak
- flatpak
- flatpak
- flatpak
- openshift/ose-rhel-coreos-10
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach10/20Shipped in major Linux distributions
- Severity8.2/10CVSS 8.2
- No patch0/5No signal
What would change the score
- Would score about 73 if added to CISA KEV
- Would score about 68 if CISA's SSVC rates exploitation active
- Would score about 33 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · flatpak/flatpak · Advisory GHSA-p4mw-6jfq-r82r |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-133842 |
| Record | NVD · CVE-2026-133842 |
| Write-ups 2Establishes: Technical detail and context. | |
| Report | bugzilla.redhat.com · show_bug.cgi?id=2585329 |
| Link | openwall.com · lists/oss-security/2026/11/24/15 |
| Other links 4 | |
| Repository | GitHub · flatpak/flatpak · Commit a21a102e |
| Repository | GitHub · flatpak/flatpak · Commit d087606b |
| Repository | GitHub · flatpak/flatpak · Release 1.18.6 |
| Link | access.redhat.com · security/cve/CVE-2026-133842 |
Questions about CVE-2026-133842
Is CVE-2026-133842 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A local user can escalate privileges to root by using a leftover setuid-root executable under /var/lib/flatpak. This happens when an app, runtime, or extension installed system-wide uses extra-data and its apply_extra logic creates a deeply nested directory tree, so permission canonicalization fails (for example with EMFILE).
Source: access.redhat.com, bugzilla.redhat.com
Am I affected, and how do I check?
The issue involves Flatpak installs made system-wide that use the extra-data mechanism with a deeply nested directory tree in apply_extra. Check your Flatpak version with flatpak --version and list system-wide installs with flatpak list --system.
Source: access.redhat.com, bugzilla.redhat.com
How do I fix CVE-2026-133842?
Upgrade Flatpak to 1.18.6 or 1.19.4, the fixed versions. Until then, do not install untrusted apps, runtimes, or extensions system-wide.
Source: access.redhat.com, bugzilla.redhat.com
Related
- CVE-2026-137941Gimp: gimp: heap out-of-bounds write via unvalidated levels channel property
- CVE-2026-136329Gimp: heap-based buffer overflow in the jif loader
- CVE-2026-132888Librelp: certificate validation bypass in certvalid tls authentication mode
- CVE-2026-137898Pam: linux-pam pam_econf local privilege escalation via relative "(null)" config directory from empty vendor directory handling
- CVE-2026-133845Flatpak: flatpak: sandbox escape via fd conflict in flatpak-portal spawn()
- CVE-2026-137974Tuned: local privilege escalation through untrusted mount table parsing in the spindown-disk profile
No corrections so far. Something wrong on this page? Report an error.