privilege escalation in Moby (moby moby)

CVE-2021-21284
MEDIUM 6.8

At a glance

Source
NVD
EPSS
EPSS 1.08 % · percentile 65 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NGitHub_M
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NNVD · security-advisories@github.com (Secondary)
CVSS 3.1MEDIUM 6.8CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:NNVD · nvd@nist.gov (Primary)
CVSS 2.0LOW 2.7AV:A/AC:L/Au:S/C:N/I:P/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
moby · mobyaffected < 19.03.15 ; affected >= 20.0.0, < 20.10.3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD