CVE-2025-62725: Docker Compose trusts the path information embedded in remote OCI compose artifacts
Affects docker-composeSource GCVE Database
Not known to be exploited · CVSS 8.9 High · fixed in 2.40.2 : patch docker-compose soon.
Data as of 24 Nov 2026, 20:10 UTC
- Patch
- Available – fixed in 2.40.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSdocker-composepkg:deb/ubuntu/docker-compose?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSdocker-composepkg:deb/ubuntu/docker-compose?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSdocker-composepkg:deb/ubuntu/docker-compose?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSdocker-composepkg:deb/ubuntu/docker-compose?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSdocker-composepkg:deb/ubuntu/docker-compose?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.