CVE-2025-15558
JSON

7.0high

Docker Desktop Docker Plugins Uncontrolled Search Path Element Local Privilege Escalation Vulnerability

Severity
7.0high CVSS:4.0 by Docker
Exploit likelihood
0.52% (higher than 37% of CVEs)
Published
Last changed
Assigned by
Docker
Also known as
GHSA-p436-gjf2-799pBIT-DOCKER-CLI-2025-15558GO-2026-4610

Description

Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins, a directory that does not exist by default. A low-privileged attacker can create this directory and place malicious CLI plugin binaries (docker-compose.exe, docker-buildx.exe, etc.) that are executed when a victim user opens Docker Desktop or invokes Docker CLI plugin features, and allow privilege-escalation if the docker CLI is executed as a privileged user. This issue affects Docker CLI: through 29.1.5 and Windows binaries acting as a CLI-plugin manager using the github.com/docker/cli/cli-plugins/manager https://pkg.go.dev/github.com/docker/cli@v29.1.5+incompatible/cli-plugins/manager  package, such as Docker Compose. This issue does not impact non-Windows binaries, and projects not using the plugin-manager code.

Affected

Product or packageVersionsReported by
Docker Docker CLINot specified
Not affected: 29.2.0
CVE List
Docker ComposeNot specified
Not affected: 5.1.0
CVE List
assisted/agent-preinstall-image-builder-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-controller-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-git-cloner-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-image-bundler-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-image-processing-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-waiters-rhel9Not specifiedCVE List
openshift-builds/openshift-builds-webhook-rhel9Not specifiedCVE List
gatekeeper/gatekeeper-rhel9Not specifiedCVE List
kmm/kernel-module-management-hub-operator-bundleNot specifiedCVE List
kmm/kernel-module-management-hub-rhel9-operatorNot specifiedCVE List

All scores

Docker7.0high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:U
redhat-SADP7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins, a directory that does not exist by default. A low-privileged attacker can create this directory and place malicious CLI plugin binaries (docker-compose.exe, docker-buildx.exe, etc.) that are executed when a victim user opens Docker Desktop or invokes Docker CLI plugin features, and allow privilege-escalation if the docker CLI is executed as a privileged user. This issue affects Docker CLI: through 29.1.5 and Windows binaries acting as a CLI-plugin manager using the github.com/docker/cli/cli-plugins/manager https://pkg.go.dev/github.com/docker/cli@v29.1.5+incompatible/cli-plugins/manager  package, such as Docker Compose. This issue does not impact non-Windows binaries, and projects not using the plugin-manager code.

GitHub Advisory Database

This issue affects Docker CLI through 29.1.5

Impact

Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins, a directory that does not exist by default. A low-privileged attacker can create this directory and place malicious CLI plugin binaries (docker-compose.exe, docker-buildx.exe, etc.) that are executed when a victim user opens Docker Desktop or invokes Docker CLI plugin features, and allow privilege-escalation if the docker CLI is executed as a privileged user.

This issue affects Docker CLI through v29.1.5 (fixed in v29.2.0). It impacts Windows binaries acting as a CLI plugin manager via the github.com/docker/cli/cli-plugins/manager package, which is consumed by downstream projects such as Docker Compose.

Docker Compose became affected starting in v2.31.0, when it incorporated the relevant CLI plugin manager code (see https://github.com/docker/compose/pull/12300), and is fixed in v5.1.0.

This issue does not impact non-Windows binaries or projects that do not use the plugin manager code.

Patches

Fixed version starts with 29.2.0

This issue was fixed in https://github.com/docker/cli/commit/13759330b1f7e7cb0d67047ea42c5482548ba7fa (https://github.com/docker/cli/pull/6713), which removed %PROGRAMDATA%\Docker\cli-plugins from the list of paths used for plugin-discovery on Windows.

Workarounds

None

Resources
Credits

Nitesh Surana (niteshsurana.com) of Trend Research of TrendAI

Go Vulnerability Database

Docker CLI Plugins: Uncontrolled Search Path Element Leads to Local Privilege Escalation on Windows in github.com/docker/cli

NVD (es)

Docker CLI para Windows busca binarios de plugin en C:\ProgramData\Docker\cli-plugins, un directorio que no existe por defecto. Un atacante de bajo privilegio puede crear este directorio y colocar binarios de plugin CLI maliciosos (docker-compose.exe, docker-buildx.exe, etc.) que se ejecutan cuando un usuario víctima abre Docker Desktop o invoca funciones de plugin de Docker CLI, y permiten la escalada de privilegios si el Docker CLI se ejecuta como un usuario privilegiado. Este problema afecta a Docker CLI: hasta la versión 29.1.5 y a los binarios de Windows que actúan como un gestor de plugin CLI utilizando el paquete github.com/docker/cli/cli-plugins/manager https://pkg.go.dev/github.com/docker/cli@v29.1.5+incompatible/cli-plugins/manager, como Docker Compose. Este problema no tiene impacto en los binarios que no son de Windows, ni en los proyectos que no utilizan el código del gestor de plugins.

References

https://docs.docker.com/desktop/release-notes/article, release-notes
https://www.zerodayinitiative.com/advisories/ZDI-CAN-28304/not-applicable, third-party-advisory, web
https://github.com/docker/cli/pull/6713fix, issue-tracking, patch, web
https://access.redhat.com/security/cve/CVE-2025-15558vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2444574issue-tracking, web
https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-15558.jsonweb
https://github.com/docker/cli/security/advisories/GHSA-p436-gjf2-799padvisory, web
https://nvd.nist.gov/vuln/detail/CVE-2025-15558advisory, web
https://github.com/docker/compose/pull/12300fix, web
https://github.com/docker/cli/commit/13759330b1f7e7cb0d67047ea42c5482548ba7fafix, web
https://docs.docker.com/desktop/release-notesweb
https://github.com/docker/clipackage

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-15558 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-p436-gjf2-799p changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4610 changed 2026-03-23CC-BY-4.0
NVDCVE-2025-15558 changed 2026-07-15Public domain
Bitnami Vulnerability DatabaseBIT-DOCKER-CLI-2025-15558 changed 2026-09-08Apache-2.0