Critical Security Update for Bubblewrap and Flatpak: Addressing File Access Vulnerability
Summary
ALSA-2024:9449: Important: bubblewrap and flatpak security update. Affects bubblewrap versions < 0.4.1-8.el9_5. Fixed in 0.4.1-8.el9_5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Bubblewrap is a core execution engine designed for unprivileged containers, functioning as a setuid binary on kernels that lack user namespaces. It is widely used in conjunction with Flatpak, a software utility for software deployment, application virtualization, and package management. This vulnerability affects the ability of applications to access files outside their designated sandbox, potentially leading to unauthorized data exposure.
Vulnerability Detail
The vulnerability identified as CVE-2024-42472 allows applications using Flatpak with the persistent flag to access files outside their sandbox environment. This flaw arises from improper isolation mechanisms within the Bubblewrap execution engine, which can be exploited by malicious applications to read or modify files that should be inaccessible. The ramifications of this vulnerability include potential data leaks and unauthorized access to sensitive information, posing significant security risks to users and systems.
How To Fix
Minimum fixed version
0.4.1-8.el9_5
This is the first release that contains the fix.
sudo dnf update bubblewrap
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, you can restrict the use of the persistent flag in Flatpak applications until the packages are updated. This can be done by modifying the application manifest files to remove the '--persist' option, thereby limiting file access to the sandboxed environment.
Conclusion
The vulnerability affecting Bubblewrap and Flatpak poses significant security risks by allowing unauthorized file access for applications using the persistent flag. It is crucial to update the affected packages to their patched versions to mitigate these risks. Users should also consider temporary workarounds until updates can be applied.
See every vulnerability recorded for bubblewrap →
FAQ
CVE-2024-42472 is a vulnerability that allows Flatpak applications using the persistent flag to access files outside their sandbox, potentially leading to unauthorized data exposure.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If immediate updates are not possible, consider removing the persistent flag from your Flatpak applications as a temporary workaround.
Failing to address this vulnerability could lead to unauthorized access to sensitive files, resulting in data breaches and potential exploitation by malicious actors.
For more details, refer to the CVE page associated with CVE-2024-42472, which provides in-depth information about the vulnerability and its implications.
Related vulnerabilities
Recent vulnerabilities recorded for bubblewrap.