CVEfocus › CVE database › CVE-2020-5291

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

CVSS 7.2 HighEPSS 0.9% (higher than 61% of CVEs)Published 2020-03-31Updated 2024-08-04Assigner: GitHub_M

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.

CWE-648

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04bubblewrapFixed0.4.0-1ubuntu4UBUNTU-CVE-2020-5291
Debian 14bubblewrapFixed0.4.1-1DEBIAN-CVE-2020-5291
Debian 13bubblewrapFixed0.4.1-1DEBIAN-CVE-2020-5291
Debian 12bubblewrapFixed0.4.1-1DEBIAN-CVE-2020-5291
Red Hat Enterprise Linux 8bubblewrapNot affected
Alpine Linux 3.24bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.23bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.22bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.21bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.20bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.19bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.18bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.17bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.16bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.15bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.14bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.13bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.12bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291
Alpine Linux 3.11bubblewrapFixed0.4.1-r0ALPINE-CVE-2020-5291

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.