Privilege Defined With Unsafe Actions Affecting github.com/moby/moby package, versions <19.3.15>=20.10.0-beta1 <20.10.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (20th 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-GOLANG-GITHUBCOMMOBYMOBY-1069900
  • published4 Feb 2021
  • disclosed3 Feb 2021
  • creditAlex Chapman, Alex Price, Nathan Burrell, Raúl Gomis, Chris Walz, Mark Adams, David Black, Brian Goff

Introduced: 3 Feb 2021

CVE-2021-21284  (opens in a new tab)
CWE-267  (opens in a new tab)

How to fix?

Upgrade github.com/moby/moby to version 19.3.15, 20.10.3 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Defined With Unsafe Actions. There is a vulnerability in Docker 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.

CVSS Scores

version 3.1