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

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-01)
- Published: 2020-03-31T18:00:18.000Z
- Modified: 2026-06-17T03:21:12.860Z
- Weaknesses: CWE-269, CWE-648
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- containers bubblewrap: < 0.4.1
- projectatomic bubblewrap: before 0.4.1
- debian debian_linux: 10.0
- archlinux arch_linux: no versions given
- centos centos: 7.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 8.5 High `AV:N/AC:M/Au:S/C:C/I:C/A:C`

## References

- <https://github.com/containers/bubblewrap/security/advisories/GHSA-j2qp-rvxj-43vj> (mitigation, third-party-advisory)
- <https://github.com/containers/bubblewrap/commit/1f7e2ad948c051054b683461885a0215f1806240> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-5291](https://www.cve.org/CVERecord?id=CVE-2020-5291), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-5291](https://nvd.nist.gov/vuln/detail/CVE-2020-5291), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5291 · Whole record: https://cve.day/CVE-2020-5291.json · Rebuilt by cve.day 2026-11-25T22:57:51.724Z
