Bug 2530542 (CVE-2026-87766) - CVE-2026-87766 bubblewrap: bubblewrap: symlink traversal via /oldroot allows writing files outside sandbox during setup
Summary: CVE-2026-87766 bubblewrap: bubblewrap: symlink traversal via /oldroot allows ...
Keywords:
Status: NEW
Alias: CVE-2026-87766
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-09 08:08 UTC by OSIDB Bzimport
Modified: 2026-09-09 08:22 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-09 08:08:28 UTC
A flaw was found in bubblewrap. During sandbox setup the host filesystem is mounted at /oldroot and the sandboxed root is mounted at /newroot. When bubblewrap creates a file or directory under /newroot, it can follow a parent symlink that points at /oldroot, causing that object to be created on the host instead of inside the sandbox. This occurs during setup, before any sandboxed process is running. Created files use the uid and gid of the user that launched bubblewrap, which is typically unprivileged. The issue affects Flatpak when a malicious or compromised application image is used, and can affect other frameworks that create files on untrusted content with bubblewrap. This vulnerability is tracked by upstream as GHSA-pxhw-h44j-8pfx. It is fixed in bubblewrap 0.12.0 by resolving paths with openat2 and RESOLVE_IN_ROOT.


Note You need to log in before you can comment on or make changes to this bug.