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

Status: published. Published: 2026-11-27. Updated: 2026-11-27.

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.

## Remediation

- 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. (source: CNA: redhat)
- fix: Flatpak (freedesktop.org): GitHub reports patched versions 1.18.6, 1.19.4. Check the advisory for the affected release branch. (source: GitHub GHSA-p4mw-6jfq-r82r) — https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r

## Affected products and versions

- Red Hat / Red Hat Enterprise Linux 10 (flatpak): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 7 (flatpak): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (flatpak): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (flatpak): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat OpenShift Container Platform 5 (openshift/ose-rhel-coreos-10): Version range not reported. Source: CNA: redhat
-  / Flatpak (Flatpak): all < 1.18.5; 1.19.x < 1.19.3 (affected, GitHub advisory range). Source: GitHub GHSA-p4mw-6jfq-r82r

## Severity and prioritization

- CVSS 3.1: 8.2 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H; source: CNA: redhat

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-281

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/security/cve/CVE-2026-133842 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2585329 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://github.com/flatpak/flatpak/commit/a21a102e10d63da3251421b17a60b977e6c4b5c8 (CNA: redhat)

- https://github.com/flatpak/flatpak/commit/d087606b9a041f3b0debe44a9b9c3beab28b6e6c (CNA: redhat)

- https://github.com/flatpak/flatpak/releases/tag/1.18.6 (CNA: redhat)

- https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r (CNA: redhat)

- https://www.openwall.com/lists/oss-security/2026/11/24/15 (CNA: redhat)

- https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r (GitHub Security Advisories; advisory)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2026-133842; retrieved 2026-11-27; source updated 2026-11-27

- GitHub Security Advisories: https://github.com/flatpak/flatpak/security/advisories/GHSA-p4mw-6jfq-r82r; retrieved 2026-11-27; source updated 2026-11-26

Revision: 2fe872b6dcc5bfb9ad7f9122092133e50f4c6cff25b2c6173bbed32456683aaf

Canonical: https://y2.dev/cve/CVE-2026-133842

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.