Skip to main content
CRITICAL

CVE-2024-42472

CVSS v3

10

CRITICAL

EPSS Score

1.3 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for flatpak.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • bubblewrapAlmaLinux:9all versions · fixed in 0.4.1-8.el9_5
  • bubblewrapAlmaLinux:8all versions · fixed in 0.4.0-2.el8_10
  • flatpakAlmaLinux:9all versions · fixed in 1.12.9-3.el9_5and 4 other packages
  • flatpakAlmaLinux:8all versions · fixed in 1.12.9-3.el8_10and 4 other packages

Vendor advisories

  • CVE-2024-42472 Red Hat Product Security814 products fixed · 1 known affected

    flatpak: Access to files outside sandbox for apps using persistent= (--persist)

    bubblewrap.src as a component of Red Hat Ansible Automation Platform 1.2

  • RHSA-2024:9449 Red Hat Product Security85 products fixed

    Red Hat Security Advisory: bubblewrap and flatpak security update

  • RHSA-2024:6422 Red Hat Product Security85 products fixed

    Red Hat Security Advisory: bubblewrap and flatpak security update

  • RHSA-2024:6419 Red Hat Product Security85 products fixed

    Red Hat Security Advisory: bubblewrap and flatpak security update

  • RHSA-2024:6421 Red Hat Product Security93 products fixed

    Red Hat Security Advisory: bubblewrap and flatpak security update

  • RHSA-2024:6418 Red Hat Product Security71 products fixed

    Red Hat Security Advisory: bubblewrap and flatpak security update

5 more advisories

Full record on NVD

Description

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`

Technical details

Published
2024-08-15

Frequently asked questions

What is CVE-2024-42472?

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`

Is CVE-2024-42472 actively exploited?

Active exploitation of CVE-2024-42472 has not been confirmed. Its EPSS score was 1.3% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-42472?

CVE-2024-42472 has a CVSS v3 base score of 10 (CRITICAL severity).

Running flatpak? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month