Docker Compose trusts the path information embedded in remote OCI compose artifacts. When a layer includes the annotations com.docker.compose.extends or com.docker.compose.envfile, Compose joins the attacker‑supplied value from com.docker.compose.file/com.docker.compose.envfile with its local cache directory and writes the file there. This affects any platform or workflow that resolves remote OCI compose artifacts, Docker Desktop, standalone Compose binaries on Linux, CI/CD runners, cloud dev environments is affected. An attacker can escape the cache directory and overwrite arbitrary files on the machine running docker compose, even if the user only runs read‑only commands such as docker compose config or docker compose ps. This issue is fixed in v2.40.2.
https://www.theregister.com/2025/10/30/docker_compose_desktop_flaws/
https://github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22q
https://github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176
Published: 2025-10-27
Updated: 2025-10-30
Base Score: 3.7
Vector: CVSS2#AV:L/AC:H/Au:N/C:P/I:P/A:P
Severity: Low
Base Score: 7.8
Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity: High
Base Score: 8.9
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Severity: High
EPSS: 0.00063
Tenable Research has classified this CVE under the following Vulnerability Watch classification, which includes active and historical (inactive) classifications. You can learn more about these classifications on our blog.
Vulnerability Being Monitored