
CVE catalog
CVE-2025-62725
docker-compose: CVE-2025-62725
- Severity
- High · CVSS 8.9
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/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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | docker-compose | sid | 2.40.3-3 | not affected |
| Debian | docker-compose | forky | 2.40.3-3 | not affected |
| Debian | docker-compose | trixie | 2.26.1-4 | not affected |
| Debian | docker-compose | bookworm | 1.29.2-3 | not affected |
| Suse | docker-compose | linux micro 6.0 | 2.33.1-4.1 | fixed |
| Ubuntu | docker-compose | 16.04 | 1.3.1-1 | vulnerable |
| Ubuntu | docker-compose | 16.04 | 1.5.1-1 | vulnerable |
| Ubuntu | docker-compose | 16.04 | 1.5.2-1 | vulnerable |
| Ubuntu | docker-compose | 16.04 | 1.8.0-2~16.04.1 | vulnerable |
| Ubuntu | docker-compose | 18.04 | 1.8.0-2 | vulnerable |
| Ubuntu | docker-compose | 18.04 | 1.17.0-1 | vulnerable |
| Ubuntu | docker-compose | 18.04 | 1.17.1-1 | vulnerable |
| Ubuntu | docker-compose | 18.04 | 1.17.1-2 | vulnerable |
| Ubuntu | docker-compose | 20.04 | 1.21.0-3 | vulnerable |
| Ubuntu | docker-compose | 20.04 | 1.25.0-1 | vulnerable |
| Ubuntu | docker-compose | 22.04 | 1.27.4-1 | vulnerable |
| Ubuntu | docker-compose | 22.04 | 1.27.4-2 | vulnerable |
| Ubuntu | docker-compose | 22.04 | 1.27.4-3 | vulnerable |
| Ubuntu | docker-compose | 22.04 | 1.29.2-1 | vulnerable |
| Ubuntu | docker-compose | 24.04 | 1.29.2-6 | vulnerable |
| Ubuntu | docker-compose | 24.04 | 1.29.2-6ubuntu1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | docker-compose | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | docker-compose | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | docker-compose | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | docker-compose | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Suse | docker-compose | rpm | linux micro 6.0 | 2.33.1-4.1 | Not reported | SUSE-SU-2026:20871-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [docker-compose]Not affected
Details (2)
1.29.2-3· all · bookwormNot affected
dsa · docker-compose · debian · bookworm
1.29.2-3· all · bookwormNot affected
dsa · docker-compose · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2025_15710-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2025-62725]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-62725]
- [https://osv.dev/vulnerability/SUSE-SU-2026:20871-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-62725]
- [https://security-tracker.debian.org/tracker/CVE-2025-62725]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]