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.