# CVE-2020-5291: Privilege escalation in setuid mode via user namespaces in Bubblewrap

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-03-31 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2020-5291, UBUNTU-CVE-2020-5291, DEBIAN-CVE-2020-5291
- Record: https://cvemate.com/vulnerability/CVE-2020-5291 · JSON: https://cvemate.com/vulnerability/CVE-2020-5291/json

## Description

```text
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 support of unprivileged user namespaces. Known to be affected are: * Debian testing/unstable, if unprivileged user namespaces enabled (not default) * Debian buster-backports, if unprivileged user namespaces enabled (not default) * Arch if using `linux-hardened`, if unprivileged user namespaces enabled (not default) * Centos 7 flatpak COPR, if unprivileged user namespaces enabled (not default) This has been fixed in the 0.4.1 release, and all affected users should update.
```

## Signals

- CVSS: 8.5 high (v2.0, NVD) AV:N/AC:M/Au:S/C:C/I:C/A:C
- EPSS: 0.904%, percentile 61.018%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine bubblewrap (Alpine Linux): \< 0.4.1-r0
- archlinux arch\_linux: na
- centos centos: 7.0
- containers bubblewrap: \< 0.4.1
- debian bubblewrap (Debian): \< 0.4.1-1
- ubuntu bubblewrap (Ubuntu): \< 0.4.0-1ubuntu4
- debian debian\_linux: 10.0
- projectatomic bubblewrap: \< 0.4.1

## References

- <https://github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj>
- <https://github.com/containers/bubblewrap/commit/1f7e2ad948c051054b683461885a0215f1806240>
- <https://security.alpinelinux.org/vuln/CVE-2020-5291>
- <https://ubuntu.com/security/CVE-2020-5291>
- <https://www.cve.org/CVERecord?id=CVE-2020-5291>
- <https://security-tracker.debian.org/tracker/CVE-2020-5291>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5291>

---

Data as of 2026-12-05T03:06:24.100Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
