Flatpak may allow access to files outside sandbox for certain apps
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 31 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| flatpak | flatpak | before 1.14.10; 1.15.0 to before 1.15.10 | 1.14.10, 1.15.10 | Patch available | CNA |
- flatpak Vendorflatpak Affected before 1.14.10; 1.15.0 to before 1.15.10 Fixed in 1.14.10, 1.15.10 Patch available CNA
Remediation
- Fix · CNA flatpak (flatpak) Fixed in 1.14.10, 1.15.10
Red Hat 10 advisories
- RHSA-2024:9449 Released 2024-11-12 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat CodeReady Linux Builder (v. 9) flatpak-1.12.9-3.el9_5, flatpak-devel-1.12.9-3.el9_5, flatpak-session-helper-1.12.9-3.el9_5
- Red Hat Enterprise Linux AppStream (v. 9) flatpak-1.12.9-3.el9_5, flatpak-libs-1.12.9-3.el9_5, flatpak-selinux-1.12.9-3.el9_5 +1
- Red Hat Enterprise Linux BaseOS (v. 9) bubblewrap-0.4.1-8.el9_5
- RHSA-2024:6422 Released 2024-09-05 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream (v. 8) flatpak-1.12.9-3.el8_10, flatpak-libs-1.12.9-3.el8_10, flatpak-selinux-1.12.9-3.el8_10 +1
- Red Hat Enterprise Linux BaseOS (v. 8) bubblewrap-0.4.0-2.el8_10
- Red Hat Enterprise Linux CRB (v. 8) flatpak-1.12.9-3.el8_10, flatpak-devel-1.12.9-3.el8_10, flatpak-session-helper-1.12.9-3.el8_10
- RHSA-2024:6419 Released 2024-09-05 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) flatpak-1.10.7-4.el8_8, flatpak-devel-1.10.7-4.el8_8, flatpak-session-helper-1.10.7-4.el8_8
- Red Hat Enterprise Linux AppStream EUS (v.8.8) flatpak-1.10.7-4.el8_8, flatpak-libs-1.10.7-4.el8_8, flatpak-selinux-1.10.7-4.el8_8 +1
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) bubblewrap-0.4.0-2.el8_8
Show 7 more Red Hat advisories
- RHSA-2024:6421 Released 2024-09-05 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream AUS (v.8.6) flatpak-1.8.7-4.el8_6, flatpak-libs-1.8.7-4.el8_6, flatpak-selinux-1.8.7-4.el8_6 +1
- Red Hat Enterprise Linux AppStream E4S (v.8.6) flatpak-1.8.7-4.el8_6, flatpak-libs-1.8.7-4.el8_6, flatpak-selinux-1.8.7-4.el8_6 +1
- Red Hat Enterprise Linux AppStream TUS (v.8.6) flatpak-1.8.7-4.el8_6, flatpak-libs-1.8.7-4.el8_6, flatpak-selinux-1.8.7-4.el8_6 +1
- Red Hat Enterprise Linux BaseOS AUS (v.8.6) bubblewrap-0.4.0-2.el8_6
- Red Hat Enterprise Linux BaseOS E4S (v.8.6) bubblewrap-0.4.0-2.el8_6
- Red Hat Enterprise Linux BaseOS TUS (v.8.6) bubblewrap-0.4.0-2.el8_6
- RHSA-2024:6418 Released 2024-09-05 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream AUS (v.8.4) flatpak-1.8.5-7.el8_4, flatpak-libs-1.8.5-7.el8_4, flatpak-selinux-1.8.5-7.el8_4 +1
- Red Hat Enterprise Linux AppStream E4S (v.8.4) flatpak-1.8.5-7.el8_4, flatpak-libs-1.8.5-7.el8_4, flatpak-selinux-1.8.5-7.el8_4 +1
- Red Hat Enterprise Linux AppStream TUS (v.8.4) flatpak-1.8.5-7.el8_4, flatpak-libs-1.8.5-7.el8_4, flatpak-selinux-1.8.5-7.el8_4 +1
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) bubblewrap-0.4.0-2.el8_4
- Red Hat Enterprise Linux BaseOS E4S (v.8.4) bubblewrap-0.4.0-2.el8_4
- Red Hat Enterprise Linux BaseOS TUS (v.8.4) bubblewrap-0.4.0-2.el8_4
- RHSA-2024:6417 Released 2024-09-05 · Red Hat rating Importantflatpak security update
- Red Hat Enterprise Linux Server (v. 7 ELS) flatpak-1.0.9-15.el7_9, flatpak-libs-1.0.9-15.el7_9
- Red Hat Enterprise Linux Server Optional (v. 7 ELS) flatpak-builder-1.0.0-15.el7_9, flatpak-devel-1.0.9-15.el7_9
- RHSA-2024:6420 Released 2024-09-05 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream AUS (v. 8.2) flatpak-1.6.2-9.el8_2, flatpak-libs-1.6.2-9.el8_2, flatpak-selinux-1.6.2-9.el8_2 +1
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) bubblewrap-0.4.0-2.el8_2
- RHSA-2024:6356 Released 2024-09-04 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream (v. 9) flatpak-1.12.9-3.el9_4, flatpak-libs-1.12.9-3.el9_4, flatpak-selinux-1.12.9-3.el9_4 +1
- Red Hat Enterprise Linux BaseOS (v. 9) bubblewrap-0.4.1-7.el9_4
- Red Hat Enterprise Linux CRB (v. 9) flatpak-1.12.9-3.el9_4, flatpak-devel-1.12.9-3.el9_4, flatpak-session-helper-1.12.9-3.el9_4
- RHSA-2024:6355 Released 2024-09-04 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) flatpak-1.12.7-5.el9_2, flatpak-devel-1.12.7-5.el9_2, flatpak-session-helper-1.12.7-5.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) flatpak-1.12.7-5.el9_2, flatpak-libs-1.12.7-5.el9_2, flatpak-selinux-1.12.7-5.el9_2 +1
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bubblewrap-0.4.1-7.el9_2
- RHSA-2024:6357 Released 2024-09-04 · Red Hat rating Importantbubblewrap and flatpak security update
- Red Hat Enterprise Linux AppStream E4S (v.9.0) flatpak-1.12.5-5.el9_0, flatpak-libs-1.12.5-5.el9_0, flatpak-selinux-1.12.5-5.el9_0 +1
- Red Hat Enterprise Linux BaseOS E4S (v.9.0) bubblewrap-0.4.1-7.el9_0
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix planned: Will not fix |
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2024:9449 |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:6419 |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:6355 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2024:6422 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:6356, RHSA-2024:9449 |
| Red Hat Enterprise Linux AppStream AUS (v. 8.2) | Fixed | RHSA-2024:6420 |
| Red Hat Enterprise Linux AppStream AUS (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux AppStream AUS (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux AppStream E4S (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux AppStream E4S (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux AppStream E4S (v.9.0) | Fixed | RHSA-2024:6357 |
| Red Hat Enterprise Linux AppStream EUS (v.8.8) | Fixed | RHSA-2024:6419 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:6355 |
| Red Hat Enterprise Linux AppStream TUS (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux AppStream TUS (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:6422 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:6356, RHSA-2024:9449 |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2024:6420 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux BaseOS E4S (v.9.0) | Fixed | RHSA-2024:6357 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:6419 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:6355 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.4) | Fixed | RHSA-2024:6418 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.6) | Fixed | RHSA-2024:6421 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:6422 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:6356 |
| Red Hat Enterprise Linux Server (v. 7 ELS) | Fixed | RHSA-2024:6417 |
| Red Hat Enterprise Linux Server Optional (v. 7 ELS) | Fixed | RHSA-2024:6417 |
Not affected: 2 products
- Red Hat Enterprise Linux 10
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2024-42472
- 2026-10-23 Fix available: Red Hat CodeReady Linux Builder (v. 9), Red Hat CodeReady Linux Builder EUS (v.8.8), Red Hat CodeReady Linux Builder EUS (v.9.2) +28 · Red Hat
- 2026-10-23 CVSS score added · Red Hat
References
Exploit 2
Patch 8
- https://github.com/containers/bubblewrap/commit/68e75c3091c87583c28a439b45c45627a94d622c
- https://github.com/containers/bubblewrap/commit/a253257cd298892da43e15201d83f9a02c9b58b5
- https://github.com/flatpak/flatpak/commit/2cdd1e1e5ae90d7c3a4b60ce2e36e4d609e44e72
- https://github.com/flatpak/flatpak/commit/3caeb16c31a3ed62d744e2aaf01d684f7991051a
- https://github.com/flatpak/flatpak/commit/6bd603f6836e9b38b9b937d3b78f3fbf36e7ff75
- https://github.com/flatpak/flatpak/commit/7c63e53bb2af0aae9097fd2edfd6a9ba9d453e97
- https://github.com/flatpak/flatpak/commit/8a18137d7e80f0575e8defabf677d81e5cc3a788
- https://github.com/flatpak/flatpak/commit/db3a785241fda63bf53f0ec12bb519aa5210de19
More Flatpak vulnerabilities
- TI-2026-26401 Flatpak has a complete sandbox escape leading to host file access and code execution in the host context CVSS 4.0CRITICAL 9.3
- TI-2023-12679 TIOCLINUX can send commands outside sandbox if running on a virtual console CVSS 3.1CRITICAL 10.0
- TI-2026-26402 Flatpak affected by arbitrary file deletion on the host filesystem CVSS 4.0HIGH 8.7
- TI-2019-07389 Flatpak before 1.0.8, 1.1.x and 1.2.x before 1.2.4, and 1.3.x before 1.3.1 allows a… CVSS 3.0CRITICAL 9.0
- TI-2021-19666 Permissions granted to applications can be hidden from the user at install time CVSS 3.1HIGH 8.6
- TI-2021-17972 Sandbox bypass via recent VFS-manipulating syscalls CVSS 3.1HIGH 8.8
Sources
- CVE-2024-42472 · CVE Program
- CVE-2024-42472 · NVD
- FIRST EPSS
- CVE-2024-42472 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences