CVE-2021-41089

`docker cp` allows unexpected chmod of host files

MEDIUM
6.3
CVSS Score
Published: October 4, 2021 at 08:20 PM UTC
Updated: June 17, 2026 at 04:07 AM UTC
3 products affected across 3 vendorsFedoraMobyMoby

Using moby by moby?

Get instant alerts when new vulnerabilities affect moby - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 0.3%

Description

Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where attempting to copy files using `docker cp` into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 20.10.9
Affected range stops below 20.10.9, so it looks safe — our inference, not a vendor statement
v < 20.10.9
Affected range stops below 20.10.9, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-281

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card