CVE-2025-62725: docker compose Path Traversal
Vulnerability summary
CVE-2025-62725 is a high (CVSS 8.9) Path Traversal vulnerability in docker compose. EPSS estimates a 13.70% chance of exploitation in the next 30 days, higher than 96.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 6 · Related 6Timeline
- 27-10-2025PublishedVulnerability first disclosed.
- 28-10-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.9HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- OSV · DebianEcosystem advisory · calculated8.9HighCVSS: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
- OSV · GoEcosystem advisory · calculated8.9HighCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- NVDNIST8.9HighCVSS: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
EPSS trend
Probability
13.70%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
+0.05 pp
From 13.65% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- docker-composeAll versions (No fix recorded)
Docker1 product
- compose< 2.40.2
Github.com/docker1 product
- composeAll versions (No fix recorded)
Github.com/docker/compose1 product
- v2≥ 2.34.0, < 2.40.2 | < 2.40.2
Suse1 product
- docker-compose&distro=SUSE Linux Micro 6.0< 2.33.1-4.1
Ubuntu1 product
- docker-composeAll versions (No fix recorded)
6 vendors · 6 products
References
10 links- github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22qX Refsource CONFIRMREPORTWEBAdvisory
- github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176X Refsource MISCREPORTWEBFIX
- github.com/docker/composePACKAGE