CVE-2025-62725
published high CVSS 4.0 · 8.9Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| docker | — | compose< 2.40.2 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-16 | docker-composeaarch64 | Advisory build | 2.33.1-160000.4.1 | SUSE-SU-2026:20976-1 |
| SUSE / openSUSE | SLE-16 | docker-composeppc64le | Advisory build | 2.33.1-160000.4.1 | SUSE-SU-2026:20976-1 |
| SUSE / openSUSE | SLE-16 | docker-composes390x | Advisory build | 2.33.1-160000.4.1 | SUSE-SU-2026:20976-1 |
| SUSE / openSUSE | SLE-16 | docker-composex86_64 | Advisory build | 2.33.1-160000.4.1 | SUSE-SU-2026:20976-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | docker-composeaarch64 | Advisory build | 2.33.1-160000.4.1 | OPENSUSE-SU-2026:20438-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | docker-composeppc64le | Advisory build | 2.33.1-160000.4.1 | OPENSUSE-SU-2026:20438-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | docker-composes390x | Advisory build | 2.33.1-160000.4.1 | OPENSUSE-SU-2026:20438-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | docker-composex86_64 | Advisory build | 2.33.1-160000.4.1 | OPENSUSE-SU-2026:20438-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20251105T184115-1.1 | OPENSUSE-SU-2025:15710-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20251105T184115-1.1 | OPENSUSE-SU-2025:15710-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20251105T184115-1.1 | OPENSUSE-SU-2025:15710-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20251105T184115-1.1 | OPENSUSE-SU-2025:15710-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.9 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| docker | compose | < 2.40.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2Provider assertions
2GitHub_M · cna
Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a51dd0f7e070d594b9098bad4116fc36abb1ab7c975cc39aab1a3a4bcca9f54a
- Ingested
- 23 Sep 2026, 08:55:41 UTC
- Source record
- Official CVE record