CVE-2026-41567: Docker `PUT /containers/{id}/archive` Executes Container Binary Vulnerability

HIGH
Advisory Identifier: GHSA-x86f-5xw2-fm2r
CVSS 7.2
CWE-427
Published
Advisory Summary

CVE-2026-41567 is a HIGH (CVSS 7.2) `put /containers/{id}/archive` executes container binary vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Docker libraries in the Go ecosystem. The issue involves `put /containers/{id}/archive` executes container binary on the host. Remediation is available by upgrading affected packages to version 2.0.0-beta.14.

CVE-2026-41567 at a Glance

CVE Identifier CVE-2026-41567
GHSA Identifier GHSA-x86f-5xw2-fm2r
Severity HIGH
CVSS v3.1 Base Score 7.2
CWE Classification CWE-427: Uncontrolled Search Path Element
Affected Product Docker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-41567

To remediate this vulnerability, upgrade all affected Docker dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/moby/moby/v2 fixed: 2.0.0-beta.14
Upgrade github.com/moby/moby/v2 to 2.0.0-beta.14
github.com/docker/docker fixed: Latest secure release
Upgrade github.com/docker/docker to Latest secure release
github.com/moby/moby fixed: Latest secure release
Upgrade github.com/moby/moby to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/moby/moby/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-41567, inspect your project dependencies for Docker:

inspect dependencies for github.com/moby/moby/v2

Analyze the terminal output to locate any version of Docker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-beta.14), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. In Docker, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary When a user uploads a compressed archive into a container, a malicious image can execute arbitrary code with daemon (host root) privileges. ## Details When handling `PUT /containers/{id}/archive` requests with compressed archives, the daemon decompresses them using external system binaries. Due to incorrect ordering of operations, these binaries are resolved from the container's filesystem rather than the host's. A container image that includes a trojanized decompression binary can achieve code execution as the daemon process whenever a compressed archive is uploaded to that container. The executed binary runs with the daemon's full privileges, including host root UID and unrestricted capabilities. ## Impact Arbitrary code execution as host root, crossing the container-to-host trust boundary. ### Conditions for exploitation - A user must run a container from a malicious image that contains a trojanized decompression binary. - The user must then upload a compressed archive (xz or gzip) into that container, either by piping a compressed archive via `docker cp -` or by calling the `PUT /containers/{id}/archive` API directly with compressed content. ### Not affected Standard `docker cp` usage is **not** affected, because the CLI sends uncompressed tar by default: ``` docker cp ./file.txt mycontainer:/file.txt ``` This can only be exploited when explicitly passing a xz or gzip-compressed archive to `docker cp` or the `PUT /containers/{id}/archive` API, for example: ``` cat archive.tar.xz | docker cp - mycontainer:/dir ``` Decompression formats using pure Go implementations (bzip2, zstd, and gzip when the container image does not contain an `unpigz` binary) are also not affected. ## Workarounds - Only run containers from trusted images. - Use authorization plugins to limit access to the `PUT /containers/{id}/archive` endpoint. - Avoid piping compressed archives into containers created from untrusted images.

CVE-2026-41567 Affected Docker Versions

3 component(s)
Fixed Versions:
2.0.0-beta.14
Product / Package Ecosystem Affected Versions Fixed Version
github.com/moby/moby/v2
Go
< 2.0.0-beta.14
2.0.0-beta.14
github.com/docker/docker
Go
≤ 28.5.2
github.com/moby/moby
Go
≤ 28.5.2

References

Frequently Asked Questions

What is CVE-2026-41567?
CVE-2026-41567 is a security vulnerability in Docker involving `PUT /containers/{id}/archive` executes container binary on the host under CWE-427: Uncontrolled Search Path Element.
Which Docker versions are affected?
Affected versions include releases prior to 2.0.0-beta.14 across affected packages: github.com/moby/moby/v2, github.com/docker/docker, github.com/moby/moby.
What version fixes CVE-2026-41567?
Upgrading to 2.0.0-beta.14 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/moby/moby/v2 affected?
Yes, github.com/moby/moby/v2 is affected in releases prior to 2.0.0-beta.14. Upgrade your dependency to 2.0.0-beta.14 or later.
Is github.com/docker/docker affected?
Yes, github.com/docker/docker is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-41567?
CVE-2026-41567 has a CVSS v3.1 base score of 7.2 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-41567?
CVE-2026-41567 is classified under CWE-427: Uncontrolled Search Path Element (The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.).
How can I check Go dependencies for CVE-2026-41567?
Run the dependency tree command: 'inspect dependencies for github.com/moby/moby/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x86f-5xw2-fm2r",
  "modified" : "2026-06-09T11:55:27Z",
  "published" : "2026-05-18T17:47:23Z",
  "aliases" : [ "CVE-2026-41567" ],
  "summary" : "Docker: `PUT /containers/{id}/archive` executes container binary on the host",
  "details" : "## Summary\n\nWhen a user uploads a compressed archive into a container, a malicious image can execute arbitrary code with daemon (host root) privileges.\n\n## Details\n\nWhen handling `PUT /containers/{id}/archive` requests with compressed archives, the daemon decompresses them using external system binaries. Due to incorrect ordering of operations, these binaries are resolved from the container's filesystem rather than the host's. A container image that includes a trojanized decompression binary can achieve code execution as the daemon process whenever a compressed archive is uploaded to that container.\n\nThe executed binary runs with the daemon's full privileges, including host root UID and unrestricted capabilities.\n\n## Impact\n\nArbitrary code execution as host root, crossing the container-to-host trust boundary.\n\n### Conditions for exploitation\n\n- A user must run a container from a malicious image that contains a trojanized decompression binary.\n- The user must then upload a compressed archive (xz or gzip) into that container, either by piping a compressed archive via `docker cp -` or by calling the `PUT /containers/{id}/archive` API directly with compressed content.\n\n### Not affected\n\nStandard `docker cp` usage is **not** affected, because the CLI sends uncompressed tar by default:\n\n```\ndocker cp ./file.txt mycontainer:/file.txt\n```\n\nThis can only be exploited when explicitly passing a xz or gzip-compressed archive to `docker cp` or the `PUT /containers/{id}/archive` API, for example:\n\n```\ncat archive.tar.xz | docker cp - mycontainer:/dir\n```\n\nDecompression formats using pure Go implementations (bzip2, zstd, and gzip when the container image does not contain an `unpigz` binary) are also not affected.\n\n## Workarounds\n\n- Only run containers from trusted images.\n- Use authorization plugins to limit access to the `PUT /containers/{id}/archive` endpoint.\n- Avoid piping compressed archives into containers created from untrusted images.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-beta.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/docker/docker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "28.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "28.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/security/advisories/GHSA-x86f-5xw2-fm2r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41567"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moby/moby"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-427" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-18T17:47:23Z",
    "nvd_published_at" : "2026-06-05T02:17:13Z"
  }
}