CVEfocus › CVE database › CVE-2024-32462

CVE-2024-32462Flatpak vulnerable to a sandbox escape via RequestBackground portal due to bad argument…

CVSS 8.4 HighEPSS 0.5% (higher than 39% of CVEs)Published 2024-04-18Updated 2025-12-16Assigner: GitHub_M

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.

CWE-88

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

38Fixed
8Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04flatpakFixed1.14.6-1UBUNTU-CVE-2024-32462
Ubuntu 22.04flatpakFix pendingUBUNTU-CVE-2024-32462
Ubuntu 20.04flatpakFix pendingUBUNTU-CVE-2024-32462
Ubuntu 18.04flatpakFix pendingUBUNTU-CVE-2024-32462
Debian 14flatpakFixed1.14.6-1DEBIAN-CVE-2024-32462
Debian 13flatpakFixed1.14.6-1DEBIAN-CVE-2024-32462
Debian 12flatpakFixed1.14.4-1+deb12u1DEBIAN-CVE-2024-32462
Red Hat Enterprise Linux 10flatpakFix pending
Affected
Red Hat Enterprise Linux 10flatpak-develFix pending
Affected
Red Hat Enterprise Linux 10flatpak-libsFix pending
Affected
Red Hat Enterprise Linux 10flatpak-selinuxFix pending
Affected
Red Hat Enterprise Linux 10flatpak-session-helperFix pending
Affected
Red Hat Enterprise Linux 9flatpakFixed0:1.12.9-1.el9_4RHSA-2024:3959
Red Hat Enterprise Linux 9flatpak-develFixed0:1.12.9-1.el9_4RHSA-2024:3959
Red Hat Enterprise Linux 9flatpak-libsFixed0:1.12.9-1.el9_4RHSA-2024:3959
Red Hat Enterprise Linux 9flatpak-selinuxFixed0:1.12.9-1.el9_4RHSA-2024:3959
Red Hat Enterprise Linux 9flatpak-session-helperFixed0:1.12.9-1.el9_4RHSA-2024:3959
Red Hat Enterprise Linux 8flatpakFixed0:1.12.9-1.el8_10RHSA-2024:3961
Red Hat Enterprise Linux 8flatpak-develFixed0:1.12.9-1.el8_10RHSA-2024:3961
Red Hat Enterprise Linux 8flatpak-libsFixed0:1.12.9-1.el8_10RHSA-2024:3961
Red Hat Enterprise Linux 8flatpak-selinuxFixed0:1.12.9-1.el8_10RHSA-2024:3961
Red Hat Enterprise Linux 8flatpak-session-helperFixed0:1.12.9-1.el8_10RHSA-2024:3961
Red Hat Enterprise Linux 7flatpakFixed0:1.0.9-13.el7_9RHSA-2024:3980
Red Hat Enterprise Linux 7flatpak-builderFixed0:1.0.0-13.el7_9RHSA-2024:3980
Red Hat Enterprise Linux 7flatpak-develFixed0:1.0.9-13.el7_9RHSA-2024:3980
Red Hat Enterprise Linux 7flatpak-libsFixed0:1.0.9-13.el7_9RHSA-2024:3980
AlmaLinux 9flatpakFixed1.12.9-1.el9_4ALSA-2024:3959
AlmaLinux 9flatpak-develFixed1.12.9-1.el9_4ALSA-2024:3959
AlmaLinux 9flatpak-libsFixed1.12.9-1.el9_4ALSA-2024:3959
AlmaLinux 9flatpak-selinuxFixed1.12.9-1.el9_4ALSA-2024:3959
AlmaLinux 9flatpak-session-helperFixed1.12.9-1.el9_4ALSA-2024:3959
AlmaLinux 8flatpakFixed1.12.9-1.el8_10ALSA-2024:3961
AlmaLinux 8flatpak-develFixed1.12.9-1.el8_10ALSA-2024:3961
AlmaLinux 8flatpak-libsFixed1.12.9-1.el8_10ALSA-2024:3961
AlmaLinux 8flatpak-selinuxFixed1.12.9-1.el8_10ALSA-2024:3961
AlmaLinux 8flatpak-session-helperFixed1.12.9-1.el8_10ALSA-2024:3961
Rocky Linux 9flatpakFixed0:1.12.9-1.el9_4RLSA-2024:3959
Rocky Linux 8flatpakFixed0:1.12.9-1.el8_10RLSA-2024:3961
Alpine Linux 3.24flatpakFixed1.14.6-r1ALPINE-CVE-2024-32462
Alpine Linux 3.23flatpakFixed1.14.6-r1ALPINE-CVE-2024-32462
Alpine Linux 3.22flatpakFixed1.14.6-r1ALPINE-CVE-2024-32462
Alpine Linux 3.21flatpakFixed1.14.6-r1ALPINE-CVE-2024-32462
Alpine Linux 3.20flatpakFixed1.14.6-r1ALPINE-CVE-2024-32462
Alpine Linux 3.19flatpakFixed1.14.6-r0ALPINE-CVE-2024-32462
Alpine Linux 3.18flatpakFixed1.14.6-r0ALPINE-CVE-2024-32462
Alpine Linux 3.17flatpakFixed1.14.6-r0ALPINE-CVE-2024-32462

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.