CVE-2026-87766
bubblewrap: bubblewrap: symlink traversal via /oldroot allows writing files outside sandbox during setup
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 9, 2026
Updated · November 2, 2026
Description
A flaw was found in bubblewrap. During sandbox setup, creating files or directories under the new root can follow a parent symlink onto the host via /oldroot, writing attacker-chosen paths outside the sandbox as the launching user. This happens before the sandboxed process starts. This issue is GHSA-pxhw-h44j-8pfx. It is fixed in bubblewrap 0.12.0.
Statement
This flaw in bubblewrap is rated as Important because it allows a local attacker to write files outside of a sandbox on the host system. This occurs during the initial setup phase, before any sandboxed process begins, by exploiting symlink traversal when processing untrusted application images, such as those used by Flatpak. While the created files are written with the privileges of the user launching bubblewrap, this can lead to unintended file creation on the host filesystem.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Do not create files on untrusted content with unpatched bwrap. Do not install untrusted Flatpaks. No upstream fix for older setuid builds.
CVSS / CWE
CVSS 3.1 · 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CWE-59 · Improper Link Resolution Before File Access