CVE-2020-5291: Bubblewrap (bwrap) before version 0.4.1, if installed in setuid mode and the kernel supports unprivileged user
CVE-2020-5291 is a high-severity flaw (CVSS 7.2) affecting bubblewrap, debian linux, arch linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Bubblewrap (bwrap) before version 0.4.1, if installed in setuid mode and the kernel supports unprivileged user namespaces, then the `bwrap --userns2` option can be used to make the setuid process keep running as root while being traceable. This can in turn be used to gain root permissions. Note that this only affects the combination of bubblewrap in setuid mode (which is typically used when unprivileged user namespaces are not supported) and the
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-5291?
bubblewrap: upgrade to 0.4.1; debian linux: mitigate or apply the listed mitigation; arch linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-5291 being exploited?
CVE-2020-5291 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-5291 affect?
CVE-2020-5291 affects bubblewrap, debian linux, arch linux. Severity is high (CVSS 7.2). Bubblewrap (bwrap) before version 0.4.1, if installed in setuid mode and the kernel supports unprivileged user namespaces, then the `bwrap --userns2` option can be used to make the setuid process keep running as root while being traceable.
How urgent is CVE-2020-5291?
Priority 45/100. High severity; On your watchlist
Software pages
Related CVEs
- CVE-2019-12439 HIGH 7.4 UPGRADE bubblewrap.c in Bubblewrap before 0.3.3 misuses temporary directories in /tmp as a mount point
- CVE-2017-5226 CRITICAL 10.0 UPGRADE When executing a program via the bubblewrap sandbox, the nonpriv session can escape to the parent session by u
- CVE-2016-8659 HIGH 7.0 UPGRADE Bubblewrap before 0.1.3 sets the PR_SET_DUMPABLE flag, which might allow local users to gain privileges by att