Skip to content
OpenAdvisories
High · 8.4 Public exploit CVE-2024-32462 EUVD-2024-30279

Flatpak vulnerable to a sandbox escape via RequestBackground portal due to bad argument parsing

Published Apr 18, 2024 · Updated Dec 16, 2025 · Assigned by GitHub_M

Description

Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. in versions before 1.10.9, 1.12.9, 1.14.6, and 1.15.8, a malicious or compromised Flatpak app could execute arbitrary code outside its sandbox. Normally, the `--command` argument of `flatpak run` expects to be given a command to run in the specified Flatpak app, optionally along with some arguments. However it is possible to instead pass `bwrap` arguments to `--command=`, such as `--bind`. It's possible to pass an arbitrary `commandline` to the portal interface `org.freedesktop.portal.Background.RequestBackground` from within a Flatpak app. When this is converted into a `--command` and arguments, it achieves the same effect of passing arguments directly to `bwrap`, and thus can be used for a sandbox escape. The solution is to pass the `--` argument to `bwrap`, which makes it stop processing options. This has been supported since bubblewrap 0.3.0. All supported versions of Flatpak require at least that version of bubblewrap. xdg-desktop-portal version 1.18.4 will mitigate this vulnerability by only allowing Flatpak apps to create .desktop files for commands that do not start with --. The vulnerability is patched in 1.15.8, 1.10.9, 1.12.9, and 1.14.6.

Affected products

VendorProductAffectedFixed
flatpak flatpak < 1.10.9, >= 1.12.0, < 1.12.9, >= 1.14.0, < 1.14.6, >= 1.15.0, < 1.15.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 flatpak 1.14.6-1 —
Debian 13 flatpak 1.14.6-1 —
Debian 12 flatpak 1.14.4-1+deb12u1 DSA-5666-1
Debian 11 flatpak 1.10.8-0+deb11u2 DSA-5666-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS flatpak 1.14.6-1 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS flatpak No fix yet —
Ubuntu Pro 20.04 LTS flatpak No fix yet —
Ubuntu Pro 18.04 LTS flatpak No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 flatpak +4 1.12.9-1.el9_4 RHSA-2024:3959
RHEL 8 flatpak +4 1.12.9-1.el8_10 RHSA-2024:3961
RHEL 7 flatpak +2 1.0.9-13.el7_9 RHSA-2024:3980
RHEL 7 flatpak-builder 1.0.0-13.el7_9 RHSA-2024:3980
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS flatpak +4 1.12.7-3.el9_2 RHSA-2024:3960
RHEL 9.0 E4S flatpak +3 1.12.5-3.el9_0 RHSA-2024:3970
RHEL 8.8 EUS flatpak +4 1.10.7-2.el8_8 RHSA-2024:3962
RHEL 8.6 TUS flatpak +3 1.8.7-2.el8_6 RHSA-2024:3969
RHEL 8.6 E4S flatpak +3 1.8.7-2.el8_6 RHSA-2024:3969
RHEL 8.6 AUS flatpak +3 1.8.7-2.el8_6 RHSA-2024:3969
RHEL 8.4 TUS flatpak +3 1.8.5-5.el8_4 RHSA-2024:3963
RHEL 8.4 E4S flatpak +3 1.8.5-5.el8_4 RHSA-2024:3963
RHEL 8.4 AUS flatpak +3 1.8.5-5.el8_4 RHSA-2024:3963
RHEL 8.2 AUS flatpak +3 1.6.2-7.el8_2 RHSA-2024:3979

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 flatpak +4 1.12.9-1.el9_4 ALSA-2024:3959
AlmaLinux 8 flatpak +4 1.12.9-1.el8_10 ALSA-2024:3961

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 flatpak 1.12.9-1.el9_4 RLSA-2024:3959
Rocky Linux 8 flatpak 1.12.9-1.el8_10 RLSA-2024:3961
ReleasePackageFixed inAdvisory
SLES 15 SP6 bubblewrap 0.11.0-150500.3.9.1 SUSE-RU-2025:0145-1
SLES 15 SP6 flatpak 1.16.0-150600.3.6.1 SUSE-RU-2025:0145-1
SLES 15 SP6 xdg-desktop-portal 1.18.2-150600.4.3.1 SUSE-SU-2024:2067-1
SLES 15 SP5 bubblewrap 0.11.0-150500.3.9.1 SUSE-RU-2025:0145-1
SLES 15 SP5 flatpak 1.14.5-150500.3.9.1 SUSE-SU-2024:1536-1, SUSE-RU-2025:0145-1
SLES 15 SP5 wayland-protocols 1.36-150500.3.3.1 SUSE-RU-2025:0145-1
SLES 15 SP5 xdg-desktop-portal 1.16.0-150500.3.6.1 SUSE-SU-2024:1803-1
SLES 15 SP4 flatpak 1.12.8-150400.3.6.1 SUSE-SU-2024:1535-1
SLES 15 SP4 xdg-desktop-portal 1.10.1-150400.3.6.1 SUSE-SU-2024:1806-1
SLES 15 SP3 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLES 15 SP3 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
SLES 15 SP2 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLES 15 SP2 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 flatpak 1.4.2-3.6.1 SUSE-SU-2024:1548-1
SLES 12 SP5 xdg-desktop-portal 1.4.2-3.3.1 SUSE-SU-2024:1832-1
SLES for SAP 15 SP5 bubblewrap 0.11.0-150500.3.9.1 SUSE-RU-2025:0145-1
SLES for SAP 15 SP5 flatpak 1.16.0-150500.3.15.1 SUSE-RU-2025:0145-1
SLES for SAP 15 SP5 wayland-protocols 1.36-150500.3.3.1 SUSE-RU-2025:0145-1
SLES for SAP 15 SP4 flatpak 1.12.8-150400.3.6.1 SUSE-SU-2024:1535-1
SLES for SAP 15 SP4 xdg-desktop-portal 1.10.1-150400.3.6.1 SUSE-SU-2024:1806-1
SLES for SAP 15 SP3 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLES for SAP 15 SP3 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
SLES for SAP 15 SP2 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLES for SAP 15 SP2 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
SLES for SAP 12 SP5 flatpak 1.4.2-3.6.1 SUSE-SU-2024:1548-1
SLES for SAP 12 SP5 xdg-desktop-portal 1.4.2-3.3.1 SUSE-SU-2024:1832-1
SLE HPC 15 SP5 bubblewrap 0.11.0-150500.3.9.1 SUSE-RU-2025:0145-1
SLE HPC 15 SP5 flatpak 1.16.0-150500.3.15.1 SUSE-RU-2025:0145-1
SLE HPC 15 SP5 wayland-protocols 1.36-150500.3.3.1 SUSE-RU-2025:0145-1
SLE HPC 15 SP4 flatpak 1.12.8-150400.3.6.1 SUSE-SU-2024:1535-1
SLE HPC 15 SP4 xdg-desktop-portal 1.10.1-150400.3.6.1 SUSE-SU-2024:1806-1
SLE HPC 15 SP3 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLE HPC 15 SP3 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
SLE HPC 15 SP2 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SLE HPC 15 SP2 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
SUSE Enterprise Storage 7.1 flatpak 1.10.8-150200.4.18.1 SUSE-SU-2024:1547-1
SUSE Enterprise Storage 7.1 xdg-desktop-portal 1.8.0-150200.5.6.1 SUSE-SU-2024:1831-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed flatpak 1.15.8-1.1 openSUSE-SU-2024:13899-1
openSUSE Leap 15.6 bubblewrap 0.11.0-150500.3.9.1 SUSE-RU-2025:0145-1
openSUSE Leap 15.6 flatpak 1.16.0-150600.3.6.1 SUSE-RU-2025:0145-1
openSUSE Leap 15.6 xdg-desktop-portal 1.18.2-150600.4.3.1 SUSE-SU-2024:2067-1
openSUSE Leap 15.5 flatpak 1.14.5-150500.3.9.1 SUSE-SU-2024:1536-1
openSUSE Leap 15.5 xdg-desktop-portal 1.16.0-150500.3.6.1 SUSE-SU-2024:1803-1
ReleasePackageFixed inAdvisory
Alpine v3.24 flatpak 1.14.6-r1 —
Alpine v3.23 flatpak 1.14.6-r1 —
Alpine v3.22 flatpak 1.14.6-r1 —
Alpine v3.21 flatpak 1.14.6-r1 —
Alpine v3.20 flatpak 1.14.6-r1 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 flatpak 1.14.6-r0 —
Alpine v3.18 flatpak 1.14.6-r0 —
Alpine v3.17 flatpak 1.14.6-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 flatpak +5 1.15.4-3.amzn2023.0.2 ALAS2023-2024-611
Amazon Linux 2 flatpak +2 1.0.9-10.amzn2.0.5 ALAS2-2024-2538
Amazon Linux 2 flatpak-builder 1.0.0-10.amzn2.0.5 ALAS2-2024-2538

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 flatpak +4 1.12.9-1.el9_4 ELSA-2024-3959
Oracle Linux 8 flatpak +4 1.12.9-1.el8_10 ELSA-2024-3961
Oracle Linux 7 flatpak +2 1.0.9-13.el7_9 ELSA-2024-3980
Oracle Linux 7 flatpak-builder 1.0.0-13.el7_9 ELSA-2024-3980

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 31

References