CVE-2025-62725: Docker Compose - Path Traversal
- Cve: CVE-2025-62725
- Name: Docker Compose - Path Traversal
- 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.
- Impact: Attackers can overwrite arbitrary files on the host, potentially leading to system compromise or data loss.
- Remediation: Update to version v2.40.2 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.9
- Cvss vector: 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
- Epss score: 0.16513
- Epss percentile: 0.97054
- Assignee: [email protected]
- Published at: 2025-10-27T21:15:38Z
- Age in days: 393
- Modified at: 2026-10-08T11:10:00Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-62725
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176 | nvd | |
| https://github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22q | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| docker/compose | commit, fix, package, security_advisory | yes | /v1/repositories/docker/compose |
Index
- Repositories: 6
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts