CVE Tools

CVE-2020-5291

Privilege escalation in setuid mode via user namespaces in Bubblewrap

CVE-2020-5291 is a privilege escalation in Projectatomic Bubblewrap (CVSS 7.2, High).

No known exploitation. EPSS puts it in the 61st percentile. Fixed in 0.4.1.

Check it yourself

OpenVAS · 2 checks

e.g. OID 1.3.6.1.4.1.25623.1.1.18.1.2024.10663.1

Run the check

Published Updated Sources: CVE.org, NVD, BDU

What to do

Find your product and version, then upgrade to the build on the right.

  • Containers BubblewrapAffected: < 0.4.1Upgrade to: not statedStated by: CVE record
  • Projectatomic BubblewrapAffected: < 0.4.1Upgrade to: 0.4.1Stated by: NVD
  • Open-source community Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
  • RusBITech-Astra Astra Linux Special Edition dlya ElbrusAffected: 8.1 «Leningrad»Upgrade to: not statedStated by: BDU
  • Open-source community BubblewrapAffected: before 0.4.1Upgrade to: not statedStated by: BDU

Versions as the sources state them. 1 more product has version data. Full version matrix after sign-in

What it is

From the CVE record

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.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS61st
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

0.9% chance of exploitation activity in the next 30 days, which ranks it in the 61st percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

7 events over 2277 days, from the signal feeds we watch.

  1. OpenVAS check added
  2. Patch availableworkaround available, record updated
  3. Publishedweakness classified, att&ck mapped

Affected products

Technical detail

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Scored 7.2 by NVD.

How it is reached

  • Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
  • Attack Complexity HighRequires specific conditions like a race condition or non-default configuration
  • Privileges Required LowRequires basic user-level privileges
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope ChangedThe exploit can affect other components (e.g. sandbox escape, host compromise from VM)

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability NoneNo availability impact

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2020-5291

Is CVE-2020-5291 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.9%.
Which versions are affected by CVE-2020-5291?
Bubblewrap: < 0.4.1. Bubblewrap: < 0.4.1. Debian GNU/Linux: 9. 3 more products are listed in the record.
How do I fix or mitigate CVE-2020-5291?
Upgrade to 0.4.1 or later. The advisory is on github.com.

Last updated

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Bubblewrap, not every advisory.