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.
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
flatpak: Access to files outside sandbox for apps using persistent= (--persist)
bubblewrap.src as a component of Red Hat Ansible Automation Platform 1.2
Red Hat Security Advisory: bubblewrap and flatpak security update
Red Hat Security Advisory: bubblewrap and flatpak security update
Red Hat Security Advisory: bubblewrap and flatpak security update
Red Hat Security Advisory: bubblewrap and flatpak security update
Red Hat Security Advisory: bubblewrap and flatpak security update
5 more advisories
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?
Is CVE-2024-42472 actively exploited?
What is the CVSS score for CVE-2024-42472?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.