CVE-2024-32462
Rocky Linux vulnerability analysis and mitigation

Overview

CVE-2024-32462 affects Flatpak, a system for building, distributing, and running sandboxed desktop applications on Linux. The vulnerability was discovered by Gergo Koteles and affects versions before 1.10.9, 1.12.9, 1.14.6, and 1.15.8. The issue was disclosed on April 18, 2024 (GitHub Advisory).

Technical details

The vulnerability stems from improper handling of the --command argument in flatpak run. When a long option name is passed to --command=, such as --bind, it can be misinterpreted as a bwrap option. This vulnerability allows manipulation of the org.freedesktop.portal.Background.RequestBackground portal interface, where a crafted commandline can be converted into a --command and arguments, potentially leading to sandbox escape (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 8.4 (High) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N (NVD).

Impact

A malicious or compromised Flatpak app could execute arbitrary code outside its sandbox, effectively bypassing the containment mechanisms that are fundamental to Flatpak's security model (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 1.15.8, 1.10.9, 1.12.9, and 1.14.6. The fix implements the use of the -- argument to bwrap, which prevents option processing before appending the attacker-specified command. Additionally, xdg-desktop-portal versions 1.18.4 and 1.16.1 provide mitigation by preventing Flatpak apps from creating .desktop files for commands that start with - (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management