p PatchFirst

CVE-2020-5291

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

CVSS 7.2 · High · EPSS 0.9% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o bubblewrap

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • bubblewrap

    Versions
    • < 0.4.1: Affected

    No fix published

  • bubblewrap Alpine 3.11

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.12

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.13

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.14

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.15

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.16

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.17

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.18

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.19

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.20

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 0.4.1-r0

    Update to 0.4.1-r0

  • bubblewrap Debian 12

    Affected ranges
    • ECOSYSTEM: < 0.4.1-1

    Update to 0.4.1-1

  • bubblewrap Debian 13

    Affected ranges
    • ECOSYSTEM: < 0.4.1-1

    Update to 0.4.1-1

  • bubblewrap Debian 14

    Affected ranges
    • ECOSYSTEM: < 0.4.1-1

    Update to 0.4.1-1

  • bubblewrap Ubuntu 20.04 LTS

    Versions
    • 0.3.3-2
    • 0.4.0-1
    • 0.4.0-1ubuntu1
    • 0.4.0-1ubuntu2
    • 0.4.0-1ubuntu3
    Affected ranges
    • ECOSYSTEM: < 0.4.0-1ubuntu4

    Update to 0.4.0-1ubuntu4

Original sources

Check your server →