Skip to content
OpenAdvisories
Medium · 6.8 CVE-2021-21284 EUVD-2024-0280GHSA-7452-xqpj-6rpc

privilege escalation in Moby

Published Feb 2, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

In Docker before versions 9.03.15, 20.10.3 there is a vulnerability involving the --userns-remap option in which access to remapped root allows privilege escalation to real root. When using "--userns-remap", if the root user in the remapped namespace has access to the host filesystem they can modify files under "/var/lib/docker/<remapping>" that cause writing files with extended privileges. Versions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user.

Affected products

VendorProductAffectedFixed
moby moby < 19.03.15, >= 20.0.0, < 20.10.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 docker.io 20.10.3+dfsg1-1 —
Debian 13 docker.io 20.10.3+dfsg1-1 —
Debian 12 docker.io 20.10.3+dfsg1-1 —
Debian 10 docker.io 18.09.1+dfsg1-7.1+deb10u3 DSA-4865-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS docker.io 20.10.7-0ubuntu1~20.04.1 —
Ubuntu 18.04 LTS docker.io 20.10.7-0ubuntu1~18.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS docker.io No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP6 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP3 containerd 1.4.4-5.32.1 SUSE-SU-2021:1954-1
SLES 15 SP3 docker 20.10.6_ce-6.49.3 SUSE-SU-2021:1954-1
SLES 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP3 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
Show 22 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 SP2 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES 15 SP2 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES 15 SP2 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SLES 15 SP2 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SLES 15 SP2 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLES 15 SP1 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES 15 SP1 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES 15 SP1 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SLES 15 SP1 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SLES 15 SP1 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLES 15 containerd 1.4.4-5.32.1 SUSE-SU-2021:1954-1
SLES 15 docker 20.10.6_ce-6.49.3 SUSE-SU-2021:1954-1
SLES 15 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLES 12 SP5 docker-stable 24.0.9_ce-1.20.1 SUSE-SU-2025:03540-1
SLES 12 containerd 1.3.9-16.35.1 SUSE-SU-2021:1458-1, SUSE-SU-2021:0445-1
SLES 12 docker 19.03.15_ce-98.60.2 SUSE-SU-2021:1458-1, SUSE-SU-2021:0445-1
SLES 12 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-1.52.1 SUSE-SU-2021:0445-1
SLES 12 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-37.1 SUSE-SU-2021:0445-1
SLES 12 runc 1.0.0~rc93-16.8.1 SUSE-SU-2021:1458-1
SLES for SAP 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP1 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES for SAP 15 SP1 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLES for SAP 15 SP1 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SLES for SAP 15 SP1 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SLES for SAP 15 SP1 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLES for SAP 15 containerd 1.4.4-5.32.1 SUSE-SU-2021:1954-1
SLES for SAP 15 docker 20.10.6_ce-6.49.3 SUSE-SU-2021:1954-1
SLES for SAP 15 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLE Micro 5.0 containerd 1.4.4-5.32.1 SUSE-SU-2021:1954-1
SLE Micro 5.0 docker 20.10.6_ce-6.49.3 SUSE-SU-2021:1954-1
SLE Micro 5.0 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLE HPC 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP1 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLE HPC 15 SP1 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SLE HPC 15 SP1 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SLE HPC 15 SP1 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SLE HPC 15 SP1 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SLE HPC 15 containerd 1.4.4-5.32.1 SUSE-SU-2021:1954-1
SLE HPC 15 docker 20.10.6_ce-6.49.3 SUSE-SU-2021:1954-1
SLE HPC 15 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SUSE Manager Server 4.0 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Server 4.0 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Server 4.0 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SUSE Manager Server 4.0 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SUSE Manager Server 4.0 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SUSE Manager Retail Branch Server 4.0 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Retail Branch Server 4.0 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Retail Branch Server 4.0 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SUSE Manager Retail Branch Server 4.0 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SUSE Manager Retail Branch Server 4.0 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SUSE Manager Proxy 4.0 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Proxy 4.0 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Manager Proxy 4.0 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SUSE Manager Proxy 4.0 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SUSE Manager Proxy 4.0 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SUSE Enterprise Storage 7.1 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SUSE Enterprise Storage 7 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
SUSE Enterprise Storage 6 containerd 1.3.9-5.29.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Enterprise Storage 6 docker 19.03.15_ce-6.43.3 SUSE-SU-2021:1954-1, SUSE-SU-2021:0435-1
SUSE Enterprise Storage 6 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-6.45.3 SUSE-SU-2021:0435-1
SUSE Enterprise Storage 6 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-4.28.3 SUSE-SU-2021:0435-1
SUSE Enterprise Storage 6 runc 1.0.0~rc93-1.14.2 SUSE-SU-2021:1954-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed docker 20.10.6_ce-2.1 openSUSE-SU-2024:10722-1
openSUSE Tumbleweed docker-stable 24.0.9_ce-15.1 openSUSE-SU-2025:15589-1
openSUSE Leap 15.6 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
openSUSE Leap 15.3 containerd 1.4.4-5.32.1 openSUSE-SU-2021:1954-1
openSUSE Leap 15.3 docker 20.10.6_ce-6.49.3 openSUSE-SU-2021:1954-1
openSUSE Leap 15.3 runc 1.0.0~rc93-1.14.2 openSUSE-SU-2021:1954-1
openSUSE Leap 15.2 containerd 1.3.9-lp152.2.3.1 openSUSE-SU-2021:0878-1, openSUSE-SU-2021:0278-1
openSUSE Leap 15.2 docker 19.03.15_ce-lp152.2.3.1 openSUSE-SU-2021:0878-1, openSUSE-SU-2021:0278-1
openSUSE Leap 15.2 docker-runc 1.0.0rc10+gitr3981_dc9208a3303f-lp152.2.3.1 openSUSE-SU-2021:0278-1
openSUSE Leap 15.2 fish 2.7.1-lp152.5.3.1 openSUSE-SU-2021:0278-1
openSUSE Leap 15.2 golang-github-docker-libnetwork 0.7.0.1+gitr2908_55e924b8a842-lp152.2.3.1 openSUSE-SU-2021:0278-1
openSUSE Leap 15.2 runc 1.0.0~rc93-lp152.2.3.1 openSUSE-SU-2021:0878-1
ReleasePackageFixed inAdvisory
Alpine v3.24 docker 20.10.3-r0 —
Alpine v3.23 docker 20.10.3-r0 —
Alpine v3.22 docker 20.10.3-r0 —
Alpine v3.21 docker 20.10.3-r0 —
Alpine v3.20 docker 20.10.3-r0 —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 docker 20.10.3-r0 —
Alpine v3.18 docker 20.10.3-r0 —
Alpine v3.17 docker 20.10.3-r0 —
Alpine v3.16 docker 20.10.3-r0 —
Alpine v3.15 docker 20.10.3-r0 —
Alpine v3.14 docker 20.10.3-r0 —
Alpine v3.13 docker 20.10.3-r0 —
Alpine v3.12 docker 20.10.3-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling docker-machine-driver-harvester 1.0.4-r1 —
Wolfi rolling rancher-machine 0.15.0.137-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/moby/moby < 19.3.15 19.3.15 GHSA-7452-xqpj-6rpc
Go github.com/moby/moby >= 20.10.0-beta1, < 20.10.3 20.10.3 GHSA-7452-xqpj-6rpc

Advisories 13

References