CVE-2026-133842

Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfile

Published Nov 27, 2026 CVSS 3.1 · 8.2 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in Flatpak’s flatpak‑system‑helper allows a local attacker to gain root privileges by exploiting a failure in permission canonicalization when the extra‑data mechanism creates a deeply nested directory tree. If canonicalization fails, for example due to an EMFILE error, the helper still reports success and leaves a setuid‑root executable under /var/lib/flatpak. A local user who can install or update system‑wide app, runtime, or extension content, or can run code as a local user in conjunction with that content, can leverage the setuid executable to elevate privileges. This weakness is classified under CWE‑281.

Affected Systems

This vulnerability affects Red Hat Enterprise Linux 7, 8, 9, 10 and the Red Hat OpenShift Container Platform 5 running Flatpak. All Flatpak versions prior to the fix delivered in the commit that introduced the 1.18.6 release are potentially vulnerable. The fix is available in Flatpak releases from 1.18.6 onward.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity local privilege escalation. No EPSS score is currently available, and the issue is not listed in the CISA KEV catalog. A local attacker who has the ability to install system‑wide Flatpak content, or who can execute code as a local user, can exploit the flaw. The attack vector is local; the attacker must have write access to system‑wide Flatpak directories or the ability to run code within the Flatpak environment.

Remediation

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.


OpenCVE Recommended Actions

  • Upgrade Flatpak to the latest version that includes the patch (e.g., 1.18.6 or later).
  • If an upgrade is not immediately possible, enforce stricter polkit rules so that only root-equivalent or trusted users can perform system‑wide Flatpak installs.
  • Avoid installing or updating untrusted Flatpak apps, runtimes, or extensions system‑wide; use user‑level installs whenever possible.

Generated by OpenCVE AI on November 27, 2026 at 09:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Flatpak: flatpak: flatpak-system-helper extra-data privilege escalation if canonicalizing permissions fails with emfile
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
Weaknesses CWE-281
CPEs cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-281

    Improper Preservation of Permissions

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 27, 2026, 8:19 AM
Reserved
Nov 20, 2026, 2:37 PM
Status
Awaiting Analysis
Published
Nov 27, 2026, 9:17 AM
Modified
Nov 27, 2026, 9:17 AM