GHSA-v994-f8vw-g7j4

Suggest an improvement
Source
https://github.com/advisories/GHSA-v994-f8vw-g7j4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-v994-f8vw-g7j4/GHSA-v994-f8vw-g7j4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-v994-f8vw-g7j4
Aliases
Published
2024-06-10T18:38:43Z
Modified
2024-07-03T20:27:20Z
Severity
  • 2.8 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
`docker cp` allows unexpected chmod of host files in Moby Docker Engine
Details

Impact

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.

Patches

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.

Workarounds

Ensure you only run trusted containers.

Credits

The Moby project would like to thank Lei Wang and Ruizhi Xiao for responsibly disclosing this issue in accordance with the Moby security policy.

For more information

If you have any questions or comments about this advisory:

  • Open an issue
  • Email us at  security@docker.com  if you think you’ve found a security bug
References

Affected packages

Go / github.com/docker/docker

Package

Name
github.com/docker/docker
View open source insights on deps.dev
Purl
pkg:golang/github.com/docker/docker

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
20.10.9