CVE-2025-62725: Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations
Vulnerability summary
CVE-2025-62725 is a high (CVSS 8.9) vulnerability in docker compose. EPSS estimates a 16.51% chance of exploitation in the next 30 days, higher than 97% of scored vulnerabilities.
Not severe (CVSS 8.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?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
16.51%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
Increase +0.75 pp
From 15.76% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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