CVE-2026-41567: CWE-427: Uncontrolled Search Path Element in moby moby/v2/daemon
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
AI Analysis
Technical Summary
Moby, an open-source container framework, and Docker Engine contain a vulnerability (CVE-2026-41567) due to an uncontrolled search path element (CWE-427). When a compressed archive is uploaded to a container or piped through docker cp, the daemon incorrectly uses decompression binaries (e.g., xz, unpigz) from the container's filesystem rather than the host's. This flaw allows a malicious container image containing trojanized decompression binaries to execute arbitrary code with full daemon privileges, including host root UID and unrestricted capabilities. The vulnerability affects Moby versions prior to 29.5.1 and moby/moby v2 versions prior to v2.0.0-beta.14. The issue is addressed in Docker Engine 29.5.1 and moby/moby v2.0.0-beta.14. Red Hat advisory confirms the severity and recommends mitigation steps such as running trusted images and restricting access to the PUT /containers/{id}/archive endpoint.
Potential Impact
Successful exploitation allows arbitrary code execution with full daemon privileges, including host root access and unrestricted capabilities. This can lead to complete compromise of the host system if a malicious container image is used to upload a compressed archive. The vulnerability impacts confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
A fix is available in Docker Engine 29.5.1 and moby/moby v2.0.0-beta.14. Users should upgrade to these versions or later. Until patched, mitigation includes running containers only from trusted images, avoiding piping compressed archives into containers created from untrusted images, and using authorization plugins to restrict access to the PUT /containers/{id}/archive endpoint. Red Hat advisory emphasizes these mitigations and does not indicate any 'no action required' status.
CVE-2026-41567: CWE-427: Uncontrolled Search Path Element in moby moby/v2/daemon
Description
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
CVSS v3.1
Score 7.2high
Affected software
moby
moby/v2/daemon
moby
Docker Engine
docker
docker/daemon
pkg:github/moby/mobyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Moby, an open-source container framework, and Docker Engine contain a vulnerability (CVE-2026-41567) due to an uncontrolled search path element (CWE-427). When a compressed archive is uploaded to a container or piped through docker cp, the daemon incorrectly uses decompression binaries (e.g., xz, unpigz) from the container's filesystem rather than the host's. This flaw allows a malicious container image containing trojanized decompression binaries to execute arbitrary code with full daemon privileges, including host root UID and unrestricted capabilities. The vulnerability affects Moby versions prior to 29.5.1 and moby/moby v2 versions prior to v2.0.0-beta.14. The issue is addressed in Docker Engine 29.5.1 and moby/moby v2.0.0-beta.14. Red Hat advisory confirms the severity and recommends mitigation steps such as running trusted images and restricting access to the PUT /containers/{id}/archive endpoint.
Potential Impact
Successful exploitation allows arbitrary code execution with full daemon privileges, including host root access and unrestricted capabilities. This can lead to complete compromise of the host system if a malicious container image is used to upload a compressed archive. The vulnerability impacts confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
A fix is available in Docker Engine 29.5.1 and moby/moby v2.0.0-beta.14. Users should upgrade to these versions or later. Until patched, mitigation includes running containers only from trusted images, avoiding piping compressed archives into containers created from untrusted images, and using authorization plugins to restrict access to the PUT /containers/{id}/archive endpoint. Red Hat advisory emphasizes these mitigations and does not indicate any 'no action required' status.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-21T14:15:21.957Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-41567","vendor":"Red Hat"}]
Threat ID: 6a222773e29bf47b5011e3d6
Added to database: 06/05/2026, 01:33:39 UTC
Last enriched: 08/13/2026, 16:34:42 UTC
Last updated: 09/14/2026, 22:11:29 UTC
Views: 182
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.