Privilege Escalation Vulnerability in Bubblewrap: CVE-2016-8659

bubblewrap Updated 02 Oct 2025

Summary

13/02/2017
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2016-8659: Bubblewrap before 0.1.3 sets the PR_SET_DUMPABLE flag, which might allow local users to gain privileges by attaching to the process, as demonstrated by sending commands to a PrivSep socket. Affects bubblewrap versions < 0.1.2-2. Fixed in 0.1.2-2. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Bubblewrap is a lightweight tool designed for creating unprivileged sandbox environments for applications. It allows users to run applications in a confined space, limiting their access to the system resources. This package is widely used in containerization and application isolation. However, prior to version 0.1.3, Bubblewrap had a critical vulnerability that could allow local users to gain elevated privileges.

Vulnerability Detail

The vulnerability, identified as CVE-2016-8659, arises from Bubblewrap setting the PR_SET_DUMPABLE flag before version 0.1.3. This flag allows local users to attach to the process, potentially leading to privilege escalation. Attackers could exploit this flaw by sending commands to a PrivSep socket, thereby gaining unauthorized access to system resources and sensitive data.

How To Fix

Minimum fixed version

0.1.2-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bubblewrap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can restrict access to the Bubblewrap executable or limit the permissions of users who can run it. This can be done by modifying the file permissions using the command: 'chmod 700 /usr/bin/bubblewrap'. However, this does not fully mitigate the risk and should only be considered until the package is updated.

Conclusion

CVE-2016-8659 represents a significant security risk for users of Bubblewrap versions prior to 0.1.3. It is crucial to update to the latest version to protect against potential privilege escalation attacks. Additionally, consider using tools like Vulert to monitor for vulnerabilities in your software.

See every vulnerability recorded for bubblewrap →

Share this vulnerability

FAQ

CVE-2016-8659 is a vulnerability in Bubblewrap that allows local users to escalate privileges by attaching to the process due to improper handling of the PR_SET_DUMPABLE flag.

You can check your version of Bubblewrap by running 'bubblewrap --version' in your terminal. If it is below 0.1.3, it is affected by this vulnerability.

If left unaddressed, this vulnerability could allow malicious users to gain unauthorized access to sensitive data and system resources, potentially leading to further exploitation.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json. You can also check your application against vulnerabilities using the Vulert playground.

If an immediate update is not possible, implement the suggested workaround by restricting access to the Bubblewrap executable until you can apply the necessary updates.

Related vulnerabilities

Recent vulnerabilities recorded for bubblewrap.

How To Fix

Minimum fixed version

0.1.2-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade bubblewrap

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback