cve.bz

CVE-2024-42472 Injection

10.0 criticalExploit referenceEPSS 1.3%Fix available

Critical (10.0). EPSS 1.3% estimated probability of exploitation activity in the next 30 days.

On this page
Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious or compromised Flatpak app using persistent directories could access and write files outside of what it would otherwise have access to, which is an attack on integrity and confidentiality. When `persistent=subdir` is used in the application permissions (represented as `--persist=subdir` in the command-line interface), that means that an application which otherwise doesn't have access to the real user home directory will see an empty home directory with a writeable subdirectory `subdir`. Behind the scenes, this directory is actually a bind mount and the data is stored in the per-application directory as `~/.var/app/$APPID/subdir`. This allows existing apps that are not aware of the per-application directory to still work as intended without general home directory access. However, the application does have write access to the application directory `~/.var/app/$APPID` where this directory is stored. If the source directory for the `persistent`/`--persist` option is replaced by a symlink, then the next time the application is started, the bind mount will follow the symlink and mount whatever it points to into the sandbox. Partial protection against this vulnerability can be provided by patching Flatpak using the patches in commits ceec2ffc and 98f79773. However, this leaves a race condition that could be exploited by two instances of a malicious app running in parallel. Closing the race condition requires updating or patching the version of bubblewrap that is used by Flatpak to add the new `--bind-fd` option using the patch and then patching Flatpak to use it. If Flatpak has been configured at build-time with `-Dsystem_bubblewrap=bwrap` (1.15.x) or `--with-system-bubblewrap=bwrap` (1.14.x or older), or a similar option, then the version of bubblewrap that needs to be patched is a system copy that is distributed separately, typically `/usr/bin/bwrap`. This configuration is the one that is typically used in Linux distributions. If Flatpak has been configured at build-time with `-Dsystem_bubblewrap=` (1.15.x) or with `--without-system-bubblewrap` (1.14.x or older), then it is the bundled version of bubblewrap that is included with Flatpak that must be patched. This is typically installed as `/usr/libexec/flatpak-bwrap`. This configuration is the default when building from source code. For the 1.14.x stable branch, these changes are included in Flatpak 1.14.10. The bundled version of bubblewrap included in this release has been updated to 0.6.3. For the 1.15.x development branch, these changes are included in Flatpak 1.15.10. The bundled version of bubblewrap in this release is a Meson "wrap" subproject, which has been updated to 0.10.0. The 1.12.x and 1.10.x branches will not be updated for this vulnerability. Long-term support OS distributions should backport the individual changes into their versions of Flatpak and bubblewrap, or update to newer versions if their stability policy allows it. As a workaround, avoid using applications using the `persistent` (`--persist`) permission.

Severity

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-08-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-42472 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-42472?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-42472?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-42472 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
flatpak:flatpakfrom 1.14.0 before 1.14.10
flatpak:flatpakfrom 1.15.0 before 1.15.10
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11flatpak1.10.8-0+deb11u3DLA-4099-1
Debian12flatpak1.14.10-1~deb12u1DEBIAN-CVE-2024-42472 DSA-5749-1
Debian13, 14flatpak1.14.10-1DEBIAN-CVE-2024-42472
Ubuntu20.04:LTSbubblewrap0.4.0-1ubuntu4.1USN-7046-1
Ubuntu20.04:LTSflatpak1.6.5-0ubuntu0.5UBUNTU-CVE-2024-42472 USN-7046-1
Ubuntu22.04:LTSbubblewrap0.6.1-1ubuntu0.1USN-7046-1
Ubuntu22.04:LTSflatpak1.12.7-1ubuntu0.1UBUNTU-CVE-2024-42472 USN-7046-1
Ubuntu24.04:LTSbubblewrap0.9.0-1ubuntu0.1USN-7046-1
Ubuntu24.04:LTSflatpak1.14.6-1ubuntu0.1UBUNTU-CVE-2024-42472 USN-7046-1
UbuntuPro:18.04:LTSflatpakno fix listedUBUNTU-CVE-2024-42472
Red Hatenterprise_linux:8::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.12.9-3.el8_10RHSA-2024:6422
Red Hatenterprise_linux:8::baseosbubblewrap, bubblewrap-debuginfo, bubblewrap-debugsource0:0.4.0-2.el8_10RHSA-2024:6422
Red Hatenterprise_linux:8::crbflatpak, flatpak-devel, flatpak-debuginfo and 5 more0:1.12.9-3.el8_10RHSA-2024:6422
Red Hatenterprise_linux:9::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.12.9-3.el9_4RHSA-2024:6356
Red Hatenterprise_linux:9::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.12.9-3.el9_5RHSA-2024:9449
Red Hatenterprise_linux:9::baseosbubblewrap, bubblewrap-debuginfo, bubblewrap-debugsource0:0.4.1-7.el9_4RHSA-2024:6356
Red Hatenterprise_linux:9::baseosbubblewrap, bubblewrap-debuginfo, bubblewrap-debugsource0:0.4.1-8.el9_5RHSA-2024:9449
Red Hatenterprise_linux:9::crbflatpak, flatpak-devel, flatpak-debuginfo and 5 more0:1.12.9-3.el9_4RHSA-2024:6356
Red Hatenterprise_linux:9::crbflatpak, flatpak-devel, flatpak-debuginfo and 5 more0:1.12.9-3.el9_5RHSA-2024:9449
Red Hatrhel_aus:8.2::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.6.2-9.el8_2RHSA-2024:6420
Red Hatrhel_aus:8.2::baseosbubblewrap, bubblewrap-debuginfo, bubblewrap-debugsource0:0.4.0-2.el8_2RHSA-2024:6420
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamflatpak, flatpak-libs, flatpak-selinux and 6 more0:1.8.5-7.el8_4RHSA-2024:6418
13 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 10 morebubblewrap0.4.1-150200.3.3.1SUSE-SU-2024:3174-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 moreflatpak1.10.8-150200.4.21.1SUSE-SU-2024:3174-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 moreflatpak1.12.8-150400.3.9.1SUSE-SU-2024:3174-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Module for Basesystem 15 SP6 and 2 morebubblewrap0.11.0-150500.3.9.1SUSE-RU-2025:0145-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreflatpak1.16.0-150500.3.15.1SUSE-RU-2025:0145-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morewayland-protocols1.36-150500.3.3.1SUSE-RU-2025:0145-1
SUSELinux Enterprise Module for Basesystem 15 SP5, Linux Enterprise Module for Basesystem 15 SP6bubblewrap0.8.0-150500.3.6.1SUSE-SU-2024:3104-1
SUSELinux Enterprise Module for Desktop Applications 15 SP5flatpak1.14.5-150500.3.12.1SUSE-SU-2024:3104-1
SUSELinux Enterprise Module for Desktop Applications 15 SP6flatpak1.14.6-150600.3.3.1SUSE-SU-2024:3104-1
SUSELinux Enterprise Module for Desktop Applications 15 SP6flatpak1.16.0-150600.3.6.1SUSE-RU-2025:0145-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5bubblewrap0.3.3-3.3.1SUSE-SU-2024:3073-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5flatpak1.4.2-3.9.1SUSE-SU-2024:3073-1
openSUSELeap 15.5flatpak1.14.5-150500.3.12.1SUSE-SU-2024:3104-1
openSUSELeap 15.5, Leap 15.6bubblewrap0.8.0-150500.3.6.1SUSE-SU-2024:3104-1
openSUSELeap 15.6bubblewrap0.11.0-150500.3.9.1SUSE-RU-2025:0145-1
openSUSELeap 15.6flatpak1.14.6-150600.3.3.1SUSE-SU-2024:3104-1
openSUSELeap 15.6flatpak1.16.0-150600.3.6.1SUSE-RU-2025:0145-1
openSUSETumbleweedbubblewrap0.10.0-1.1openSUSE-SU-2024:14269-1
openSUSETumbleweedflatpak1.15.10-1.1openSUSE-SU-2024:14275-1
AlmaLinux8bubblewrap0.4.0-2.el8_10ALSA-2024:6422
AlmaLinux8flatpak, flatpak-libs, flatpak-devel and 2 more1.12.9-3.el8_10ALSA-2024:6422
AlmaLinux9bubblewrap0.4.1-7.el9_4.alma.1ALSA-2024:6356
AlmaLinux9bubblewrap0.4.1-8.el9_5ALSA-2024:9449
AlmaLinux9flatpak, flatpak-libs, flatpak-devel and 2 more1.12.9-3.el9_4ALSA-2024:6356
AlmaLinux9flatpak, flatpak-libs, flatpak-devel and 2 more1.12.9-3.el9_5ALSA-2024:9449
Rocky Linux8bubblewrap0:0.4.0-2.el8_10RLSA-2024:6422
Rocky Linux8flatpak0:1.12.9-3.el8_10RLSA-2024:6422
Rocky Linux9bubblewrap0:0.4.1-8.el9_5RLSA-2024:9449
Rocky Linux9flatpak0:1.12.9-3.el9_5RLSA-2024:6356
Alpinev3.20, v3.21, v3.22 and 2 morebubblewrap0.10.0-r0ALPINE-CVE-2024-42472
Alpinev3.20, v3.21, v3.22 and 2 moreflatpak1.14.10-r0ALPINE-CVE-2024-42472

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in Flatpak represents a significant severity issue due to its potential to undermine the core principles of application sandboxing, which are designed to isolate applications and protect the integrity and confidentiality of the system. By exploiting the persistent=subdir option, a malicious or compromised application can manipulate bind mounts via symlinks, thereby escaping the confines of its designated sandbox. This allows unauthorized access to the host filesystem, enabling the potential for unauthorized data manipulation, exfiltration, or system compromise. The risk is further exacerbated by the presence of a race condition, which can be exploited by running multiple instances of a malicious app concurrently.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportflatpak-0:1.0.9-15.el7_9Fixed 2024-09-05RHSA-2024:6417
Red Hat Enterprise Linux 8bubblewrap-0:0.4.0-2.el8_10Fixed 2024-09-05RHSA-2024:6422
Red Hat Enterprise Linux 8flatpak-0:1.12.9-3.el8_10Fixed 2024-09-05RHSA-2024:6422
Red Hat Enterprise Linux 8.2 Advanced Update Supportbubblewrap-0:0.4.0-2.el8_2Fixed 2024-09-05RHSA-2024:6420
Red Hat Enterprise Linux 8.2 Advanced Update Supportflatpak-0:1.6.2-9.el8_2Fixed 2024-09-05RHSA-2024:6420
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportbubblewrap-0:0.4.0-2.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportflatpak-0:1.8.5-7.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicebubblewrap-0:0.4.0-2.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceflatpak-0:1.8.5-7.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsbubblewrap-0:0.4.0-2.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsflatpak-0:1.8.5-7.el8_4Fixed 2024-09-05RHSA-2024:6418
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportbubblewrap-0:0.4.0-2.el8_6Fixed 2024-09-05RHSA-2024:6421
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportflatpak-0:1.8.7-4.el8_6Fixed 2024-09-05RHSA-2024:6421
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicebubblewrap-0:0.4.0-2.el8_6Fixed 2024-09-05RHSA-2024:6421
Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceflatpak-0:1.8.7-4.el8_6Fixed 2024-09-05RHSA-2024:6421
Red Hat Ansible Automation Platform 1.2bubblewrapWill not fix
Red Hat Enterprise Linux 10bubblewrapNot affected
Red Hat Enterprise Linux 10flatpakNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-42472.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON