CVE-2025-62725
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/docker/compose/v2Go | >= 2.34.0, < 2.40.2 | 2.40.2 |
Affected products
9- ghsa-coords8 versionspkg:golang/github.com/docker/compose/v2pkg:rpm/opensuse/docker-compose&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/docker-compose&distro=SUSE%20Linux%20Enterprise%20Server%2016.0pkg:rpm/suse/docker-compose&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0pkg:rpm/suse/docker-compose&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/docker-compose&distro=SUSE%20Linux%20Micro%206.1pkg:rpm/suse/docker-compose&distro=SUSE%20Linux%20Micro%206.2
>= 2.34.0, < 2.40.2+ 7 more
- (no CPE)range: >= 2.34.0, < 2.40.2
- (no CPE)range: < 2.33.1-160000.4.1
- (no CPE)range: < 0.0.20251105T184115-1.1
- (no CPE)range: < 2.33.1-160000.4.1
- (no CPE)range: < 2.33.1-160000.4.1
- (no CPE)range: < 2.33.1-4.1
- (no CPE)range: < 2.33.1-slfo.1.1_2.1
- (no CPE)range: < 2.33.1-160000.4.1
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.