REDHAT-BUG-2485356: High severity Docker Docker Engine vulnerability
Moby is an open source container framework. In versions prior to 29.5.1 and in moby/moby v2 prior to v2.0.0-beta.14, when a compressed archive is uploaded to a container via PUT /containers/{id}/archive or piped through docker cp -, the daemon resolves decompression binaries (such as xz or unpigz) from the container's filesystem rather than the host's due to incorrect ordering of operations. A malicious container image containing a trojanized decompression binary can achieve arbitrary code execution with full daemon privileges, including host root UID and unrestricted capabilities, when a user uploads a compressed (xz or gzip) archive into that container. This issue is fixed in Docker Engine 29.5.1 and moby/moby v2.0.0-beta.14. Workarounds include only running containers from trusted images, using authorization plugins to restrict access to the PUT /containers/{id}/archive endpoint, and avoiding piping compressed archives into containers created from untrusted images
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Docker Engineto a version that resolves this vulnerability.Fixed in 29.5.1 - Upgrade
Upgrade
moby/mobyto a version that resolves this vulnerability.Fixed in v2.0.0-beta.14 - Compensating control
Use authorization plugins to restrict access to the `PUT /containers/{id}/archive` endpoint.
- Compensating control
Only run containers from trusted images, and avoid piping compressed archives into containers created from untrusted images (e.g., avoid `docker cp -` with xz/gzip content into such containers).
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2485356?
The severity of REDHAT-BUG-2485356 is high with a score of 7.
What versions are affected by REDHAT-BUG-2485356?
REDHAT-BUG-2485356 affects versions of Moby prior to 29.5.1 and moby/moby v2 prior to v2.0.0-beta.14.
How do I fix REDHAT-BUG-2485356?
To fix REDHAT-BUG-2485356, upgrade to Moby version 29.5.1 or later and moby/moby version v2.0.0-beta.14 or later.
What types of attacks does REDHAT-BUG-2485356 potentially allow?
REDHAT-BUG-2485356 potentially allows attackers to gain unintended access to decompression binaries and execute arbitrary commands.
What is the main issue described in REDHAT-BUG-2485356?
The main issue in REDHAT-BUG-2485356 is that the container daemon incorrectly resolves decompression binaries when a compressed archive is uploaded.