Improper Privilege Management Affecting bubblewrap package, versions <0.4.0-1ubuntu4


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.91% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-BUBBLEWRAP-1130372
  • published10 Sept 2020
  • disclosed31 Mar 2020

Introduced: 31 Mar 2020

CVE-2020-5291  (opens in a new tab)
CWE-269  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 bubblewrap to version 0.4.0-1ubuntu4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bubblewrap package and not the bubblewrap package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1