Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting flatpak/flatpak package, versions [,1.14.10) [1.15.0,1.15.10)
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-FLATPAKFLATPAK-7689048
- 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 flatpak/flatpak
to version 1.14.10, 1.15.10 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.