Skip to main content

Flatpak CVE-2026-133842

| EUVDEUVD-2026-137056 HIGH
Improper Preservation of Permissions (CWE-281)
2026-11-25 vendor:ubuntu
8.2
CVSS 3.1 · Vendor: vendor:ubuntu
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Install/run malicious system-wide extra-data app
  2. Delivery
    apply_extra builds deeply-nested directory tree
  3. Exploit
    Permission canonicalization hits EMFILE, fails open
  4. Execution
    setuid-root executable retains setuid bit
  5. Impact
    Execute setuid binary for root escalation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Permission preservation
Exploitation Conditions

Requires a system-wide-installed (not per-user) app, runtime, or extension that uses Flatpak's extra-data mechanism, whose apply_extra program/script creates a very deeply nested directory hierarchy to exhaust file descriptors (EMFILE) during _flatpak_canonicalize_permissions, so canonicalization fails and a setuid/setgid-root executable under /var/lib/flatpak retains its setuid bit. Exploitation then requires a cooperating malicious local user to run that setuid binary, or the app/runtime/extension already having (or combining with) a way to execute arbitrary code as the user. Limiting factors: by default only root-equivalent users may install apps system-wide (so the malicious component must be staged by a privileged/trusting installer or via loosened polkit rules), exploitation needs the specific EMFILE resource-exhaustion condition during canonicalization, and it is a local (AV:L) vector with user interaction (UI:R) - not remotely reachable.

Impact

This is a genuine local privilege-escalation issue (CWE-281, improper preservation of permissions) in Flatpak's flatpak-system-helper, not a high-CVSS-but-low-real-risk item, but its exploitability is gated by meaningful preconditions. The input CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H, 8.2) aligns with the advisory: local vector, low attacker privilege, user interaction (installing/running the malicious app), scope change out of the app sandbox to root, and full confidentiality/integrity/availability impact via root escalation. No EPSS score, KEV listing, or SSVC automatable/technical-impact fields were supplied; the vuln.today decision label is 'this_week' rather than act_now/emergency, consistent with a serious but conditional local flaw. No KEV entry means there is no confirmed active exploitation, and no exploit reference is present, so this should be prioritized as near-term patching rather than emergency response. A key mitigating signal from the evidence: by default only root-equivalent users may install apps system-wide, which substantially limits who can stage the malicious extra-data app in the first place.

Exploit ScenarioDerived

A system-wide-installed app, runtime, or extension that uses Flatpak's extra-data mechanism runs an apply_extra script crafting a very deeply nested directory hierarchy, exhausting file descriptors (EMFILE) during Flatpak's permission canonicalization so it fails open and leaves a setuid-root executable under /var/lib/flatpak with its setuid bit intact. A cooperating malicious local user, or the app itself if it can already run code as the user, then executes that setuid-root binary to escalate to root. No public exploit code is identified; detailed fix commits and an upstream advisory are published, which could aid reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Nov 27, 2026

Local privilege escalation in Flatpak's flatpak-system-helper allows a setuid-root executable placed under /var/lib/flatpak by an extra-data app, runtime or extension to retain its setuid bit, because permission canonicalization fails open when the directory walk hits file-descriptor exhaustion (EMFILE). Only system-wide installs whose apply_extra program creates a very deeply nested directory hierarchy are affected (Flatpak before 1.18.5 and 1.19.x before 1.19.3, fixed in 1.18.6 and 1.19.4), and gaining root additionally requires a malicious local user to run the surviving binary or the component to already have a way to execute code as that user. The vector is local with user interaction (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H), default policy restricts system-wide installation to root-equivalent users, and no public exploit was identified at time of analysis.

Earlier versions of this analysis (1)
v1 Nov 25, 2026 - 22:11

Ubuntu Linux carries a security-update record for CVE-2026-133842, reported by the vendor (Ubuntu) rather than by an upstream project, but the supplied entry contains nothing beyond the text 'security update' - no CVSS vector, no CWE class, no affected package name and no affected release list. Because none of the severity metrics were provided, the impact on confidentiality, integrity or availability cannot be stated and the risk is unquantified rather than demonstrably low. No public exploit code or CISA KEV entry is associated with this identifier in the available data, and the record is prioritized by vuln.today as 'this_month'; the specific package and the conditions under which it is exploitable must be recovered from the referenced Ubuntu Security Notice.

RemediationAI

Upgrade to Flatpak 1.18.6 on the stable branch or 1.19.4 on the development branch; do not rely on the 1.18.5 or 1.19.3 tags, whose release process failed and which were superseded. Distributions on the unsupported flatpak-1.16.x LTS branch (for example Debian 13) must pick up the backported commits from that branch, since upstream will not issue a formal release from it. If upgrading immediately is not possible, the vendor's stated workarounds are to avoid installing untrusted apps, runtimes or extensions system-wide even when only unprivileged users will run them, and not to modify Flatpak's polkit rules to let untrusted local users install system-wide components, because by default only root-equivalent users can do so and can therefore judge whether the publisher is trusted. Other users can only update apps already installed, and updating is the only complete fix according to the vendor; note that after patching, an exploitation attempt still leaves a hidden .$HASH-XXXXXX directory containing the setuid executable under /var/lib/flatpak, but with files/extra made inaccessible to non-root users, so the residual artifact cannot be used for privilege escalation.

Affected ProductsAI

Flatpak is affected in all versions before 1.18.5 and in the 1.19.x development series before 1.19.3, per the packaged advisory data. The flaw is only reachable for apps, runtimes or extensions installed system-wide (not per-user) that use the extra-data mechanism, whose apply_extra program or script can create a very deeply nested directory hierarchy under /var/lib/flatpak. Upstream states the fix is in Flatpak 1.18.6 (stable) and 1.19.4 (development); the 1.18.5 and 1.19.3 tags also contain the fix but those releases failed and were superseded, so 1.18.6 and 1.19.4 are the versions to target. LTS distributions that stayed on the unsupported flatpak-1.16.x branch (for example Debian 13) have backports of the fix in that branch but will not receive a formal release from it. No CPE strings were supplied with this record. References: the canonical advisory https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r, the release https://github.com/flatpak/flatpak/releases/tag/1.18.6, the Red Hat tracking entries https://access.redhat.com/security/cve/CVE-2026-133842 and https://bugzilla.redhat.com/show_bug.cgi?id=2585329, and the oss-security post https://www.openwall.com/lists/oss-security/2026/11/24/15.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flatpak's extra-data mechanism lets a system-wide-installed app, runtime or extension ship an apply_extra program that runs during installation and writes beneath the component's files/extra/ directory inside /var/lib/flatpak. After that step, flatpak-system-helper calls _flatpak_canonicalize_permissions() in common/flatpak-utils.c to walk the tree and strip setuid/setgid bits so nothing in the repository can act as a root-owned setuid binary. The root cause is CWE-281 (improper preservation of permissions): the directory iterator loop conflated a readdir()/open failure with normal end-of-iteration and simply broke out of the loop, so once the walk errored out the remaining entries were never canonicalized. An apply_extra payload that creates an extremely deeply nested hierarchy exhausts file descriptors (EMFILE) partway through, aborting the walk while a setuid-root executable sitting deeper in files/extra/ keeps its setuid bit. The upstream fixes make canonicalization fail closed: commit d087606b9a041f3b0debe44a9b9c3beab28b6e6c propagates an error when a directory cannot be opened, and commit a21a102e10d63da3251421b17a60b977e6c4b5c8 (shown in the source diff) passes the GError through glnx_dirfd_iterator_next_dent(), treats an error as a hard failure (res = FALSE) and only treats a NULL dent as clean end-of-iteration. A documented limitation remains: a failed attempt leaves a directory such as /var/lib/flatpak/app/$APP/$ARCH/$BRANCH/.$HASH-XXXXXX containing the setuid/setgid executable under files/extra/, but files/extra permissions are set so non-root users cannot reach it (tracked as flatpak issue 6991).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vendor:ubuntu) PRIMARY 8.2 HIGH
AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 8.2 HIGH

Local malicious component plus cooperating local user (AV:L, PR:L, UI:R); attacker engineers the EMFILE condition deterministically (AC:L); sandbox-to-root escape is a scope change (S:C) with full root impact.

3.1 AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.2 HIGH

Primary rating from Vendor (vendor:ubuntu).

CVSS VectorVendor: vendor:ubuntu

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Updated
Nov 27, 2026 - 09:28 vuln.today
v2 - CVSS changed
CVSS changed
Nov 27, 2026 - 09:22 NVD
8.2 (HIGH)

DescriptionCVE.org

security update

Technical POC Analysis

CWE-281, Improper Preservation of Permissions.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-133842 is a high-severity local privilege escalation flaw in Flatpak's system helper that could allow an authorized local user to gain root access under specific conditions. While exploitation requires user interaction and a malicious local actor, the potential for full system compromise means security leadership should prioritize remediation, particularly for systems where non-admin users have system-wide installation rights.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict system-wide Flatpak installation to root-equivalent users, monitor /var/lib/flatpak for unauthorized setuid binaries, and apply file integrity monitoring to detect anomalous changes.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
Flatpak is widely deployed app-sandboxing framework across Linux desktop distributions
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy