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)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (15th 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 ID SNYK-UNMANAGED-CONTAINERSBUBBLEWRAP-7689049
  • published 16 Aug 2024
  • disclosed 15 Aug 2024
  • credit chrisawi

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

  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
Expand this section

Snyk

Recommended
6.4 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    None