CVE catalog

CVE-2025-62725

docker-compose: CVE-2025-62725

[CVE catalog]

Severity
High · CVSS 8.9CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
13.70% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiandocker-composesid2.40.3-3not affected
Debiandocker-composeforky2.40.3-3not affected
Debiandocker-composetrixie2.26.1-4not affected
Debiandocker-composebookworm1.29.2-3not affected
Susedocker-composelinux micro 6.02.33.1-4.1fixed
Ubuntudocker-compose16.041.3.1-1vulnerable
Ubuntudocker-compose16.041.5.1-1vulnerable
Ubuntudocker-compose16.041.5.2-1vulnerable
Ubuntudocker-compose16.041.8.0-2~16.04.1vulnerable
Ubuntudocker-compose18.041.8.0-2vulnerable
Ubuntudocker-compose18.041.17.0-1vulnerable
Ubuntudocker-compose18.041.17.1-1vulnerable
Ubuntudocker-compose18.041.17.1-2vulnerable
Ubuntudocker-compose20.041.21.0-3vulnerable
Ubuntudocker-compose20.041.25.0-1vulnerable
Ubuntudocker-compose22.041.27.4-1vulnerable
Ubuntudocker-compose22.041.27.4-2vulnerable
Ubuntudocker-compose22.041.27.4-3vulnerable
Ubuntudocker-compose22.041.29.2-1vulnerable
Ubuntudocker-compose24.041.29.2-6vulnerable
Ubuntudocker-compose24.041.29.2-6ubuntu1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiandocker-composesourcesidNot affectedunimportantNot reportedNot reported
Debiandocker-composesourceforkyNot affectedunimportantNot reportedNot reported
Debiandocker-composesourcetrixieNot affectedunimportantNot reportedNot reported
Debiandocker-composesourcebookwormNot affectedunimportantNot reportedNot reported
Susedocker-composerpmlinux micro 6.02.33.1-4.1Not reportedSUSE-SU-2026:20871-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [docker-compose]Not affected
    Details (2)
    • 1.29.2-3 · all · bookworm

      Not affected

      dsa · docker-compose · debian · bookworm

    • 1.29.2-3 · all · bookworm

      Not affected

      dsa · docker-compose · debian · bookworm

Observed:

References