Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting containers/bubblewrap package, versions [,0.6.3) [0.7.0,0.10.0)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-UNMANAGED-CONTAINERSBUBBLEWRAP-7689049
- published 16 Aug 2024
- disclosed 15 Aug 2024
- credit chrisawi
Introduced: 15 Aug 2024
CVE-2024-42472 Open this link in a new tabHow to fix?
Upgrade containers/bubblewrap
to version 0.6.3, 0.10.0 or higher.
Overview
Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') via the persistent
option in application permissions. An attacker can manipulate the symlink to redirect the bind mount, allowing unauthorized access and modification of files outside the intended sandbox environment by replacing the source directory for the persistent
option with a malicious symlink.
Notes:
Partial protection against this vulnerability can be provided by patching Flatpak, 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.This only affects applications using the persistent (--persist) permission.