CVE-2021-41089

`docker cp` allows unexpected chmod of host files

Published Oct 4, 2021 CVSS 3.1 · 2.8 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2176 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.
Github GHSA Github GHSA GHSA-v994-f8vw-g7j4 `docker cp` allows unexpected chmod of host files in Moby Docker Engine
Ubuntu USN Ubuntu USN USN-5103-1 docker.io vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 4, 2024, 2:59 AM
Reserved
Sep 15, 2021, 12:00 AM
Status
Modified
Published
Oct 4, 2021, 9:15 PM
Modified
Jun 17, 2026, 4:07 AM
Severity
Moderate
Public date
Oct 4, 2021, 12:00 AM