CVE-2021-41089
moby: `docker cp` allows unexpected chmod of host file
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 4, 2021
Updated · August 5, 2026
Description
A file permissions vulnerability was found in Moby (Docker Engine). Copying files by using docker cp into a specially-crafted container can result in Unix file permission changes for existing files in the host's filesystem, which might lead to permissions escalation and allow an attacker access to restricted data.
Statement
In OpenShift Container Platform (OCP), Migration Toolkit for Virtualization (MTV) and Red Hat Quay some components bundle github.com/moby/moby, but successful exploitation requires using a specially crafted container, therefore impact to these components is LOW.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L
CWE-552 · Files or Directories Accessible to External Parties