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

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, github.com/docker/docker (Go), github.com/moby/moby (Go), github.com/moby/moby/v2 (Go). Vendors: Docker, Go, 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.