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)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (16th percentile)

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 IDSNYK-UNMANAGED-FLATPAKFLATPAK-7689048
  • published16 Aug 2024
  • disclosed15 Aug 2024
  • creditchrisawi

Introduced: 15 Aug 2024

CVE-2024-42472  (opens in a new tab)
CWE-74  (opens in a new tab)

How 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:

  1. 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.

  2. This only affects applications using the persistent (--persist) permission.

CVSS Scores

version 4.0
version 3.1