# CVE-2026-41567: Moby and Docker Engine code execution via trojanized decompression binaries

Source: https://junglewise.ai/threats/cve-2026-41567-moby-and-docker-engine-code-execution-via-trojanized  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-05. Updated: 2026-06-05  
License: CC BY 4.0 with a link back

CVE-2026-41567 · Severity: high · CVSS 7.2 · Published 2026-06-05

Moby is an open-source framework used to build and run software containers. A security flaw allows a malicious container image to take control of the host computer if a user attempts to copy compressed files into that container. This could result in a total compromise of the host system, allowing an attacker to access sensitive data or disrupt operations with full administrative privileges.

Technologies: [Docker Engine](https://junglewise.ai/threats/technologies/engine), [github.com/docker/docker (Go)](https://junglewise.ai/threats/technologies/github-com-docker-docker), [github.com/moby/moby (Go)](https://junglewise.ai/threats/technologies/github-com-moby-moby), [github.com/moby/moby/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-moby-moby-v2). Vendors: [Docker](https://junglewise.ai/threats/vendors/docker), [Go](https://junglewise.ai/threats/vendors/go), [Moby Project](https://junglewise.ai/threats/vendors/moby-project).

## Quick answers

**Is CVE-2026-41567 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-41567 being exploited in the wild.

**How severe is CVE-2026-41567?** High severity, with a CVSS score of 7.2, published 5 June 2026.

**Which products and versions are affected?** Docker Engine < 29.5.1, <= 28.5.2; github.com/docker/docker (Go) <= 28.5.2, SEMVER:introduced=0, SEMVER:introduced=0,last_affected=28.5.2; github.com/moby/moby (Go) <= 28.5.2, SEMVER:introduced=0, SEMVER:introduced=0,last_affected=28.5.2; github.com/moby/moby/v2 (Go) < 2.0.0-beta.14, SEMVER:introduced=0,fixed=2.0.0-beta.14; and 1 more.

**Is there a fix for CVE-2026-41567?** Yes. github.com/moby/moby/v2 (Go): upgrade to 2.0.0-beta.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-41567 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-41567?** Check whether you run Docker Engine, github.com/docker/docker (Go), github.com/moby/moby (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/moby/moby/v2 (Go): upgrade to 2.0.0-beta.14 or later

  ```sh
  go get github.com/moby/moby/v2@v2.0.0-beta.14
  ```


## Technical details

A path traversal/uncontrolled search path vulnerability (CWE-427) exists in the Moby daemon's archive handling. When processing 'PUT /containers/{id}/archive' requests or 'docker cp -' commands involving compressed archives (xz or gzip), the daemon incorrectly resolves decompression binaries like 'xz' or 'unpigz' from the container's filesystem instead of the host's. If a container is started from a malicious image containing trojanized versions of these binaries, the daemon will execute them with full root privileges and unrestricted capabilities on the host. Exploitation requires a user to interactively upload a compressed archive to a compromised container. Pure Go implementations for bzip2 and zstd are unaffected.

## Affected products

- Docker Docker Engine < 29.5.1
- Moby Project Moby < 29.5.1, < v2.0.0-beta.14

## Identifiers

- CVE-2026-41567
- GHSA-x86f-5xw2-fm2r
- GO-2026-5746

## Timeline

- 2026-05-18: advisory: GitHub advisory published by Moby maintainers
- 2026-06-05: disclosed: NVD publication date

## References

- [https://github.com/moby/moby/security/advisories/GHSA-x86f-5xw2-fm2r](https://github.com/moby/moby/security/advisories/GHSA-x86f-5xw2-fm2r)

## Related threats

- [Moby overlay network encryption iptables rules bypass after firewalld reload](https://junglewise.ai/threats/cve-2026-115538-moby-s-overlay-network-driver-does-not-restore-the-iptables)
- [Moby Docker Engine race condition in docker cp mount setup](https://junglewise.ai/threats/cve-2026-42306-moby-docker-engine-race-condition-in-docker-cp-mount-setup)
- [Moby Docker Engine symlink race condition in docker cp](https://junglewise.ai/threats/cve-2026-41568-moby-docker-engine-symlink-race-condition-in-docker-cp)
- [Moby AuthZ plugin authorization bypass via oversized request body](https://junglewise.ai/threats/cve-2026-34040-moby-authz-plugin-authorization-bypass-via-oversized-request-body)
- [Moby privilege validation bypass in docker plugin install](https://junglewise.ai/threats/cve-2026-33997-moby-privilege-validation-bypass-in-docker-plugin-install)
