CVE-2025-62725

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-62725
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62725.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-62725
Aliases
Downstream
Published
2025-10-27T20:37:32.340Z
Modified
2025-12-05T10:21:23.010960Z
Severity
  • 8.9 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62725.json",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/docker/compose

Affected ranges

Type
GIT
Repo
https://github.com/docker/compose
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v2.*

v2.0.0
v2.0.0-rc.3
v2.0.1
v2.1.0
v2.1.1
v2.10.0
v2.10.1
v2.10.2
v2.11.0
v2.11.1
v2.11.2
v2.12.0
v2.12.1
v2.12.2
v2.13.0
v2.14.0
v2.14.1
v2.14.2
v2.15.0
v2.15.1
v2.16.0
v2.17.0
v2.17.0-rc.1
v2.17.1
v2.17.2
v2.17.3
v2.18.0
v2.18.1
v2.19.0
v2.19.1
v2.2.0
v2.2.1
v2.2.2
v2.2.3
v2.20.0
v2.20.1
v2.20.2
v2.20.3
v2.21.0
v2.22.0
v2.23.0
v2.23.1
v2.23.2
v2.23.3
v2.24.0
v2.24.0-birthday.10
v2.24.1
v2.24.2
v2.24.3
v2.24.4
v2.24.5
v2.24.6
v2.24.7
v2.25.0
v2.26.0
v2.26.1
v2.27.0
v2.27.1
v2.27.2
v2.27.3
v2.28.0
v2.28.1
v2.29.0
v2.29.1
v2.29.2
v2.29.3
v2.29.4
v2.29.5
v2.29.6
v2.29.7
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.3.4
v2.30.0
v2.30.1
v2.30.2
v2.30.3
v2.31.0
v2.32.0
v2.32.1
v2.32.2
v2.32.3
v2.32.4
v2.33.0
v2.33.1
v2.34.0
v2.35.0
v2.35.1
v2.36.0
v2.36.1
v2.36.2
v2.37.0
v2.37.1
v2.37.2
v2.37.3
v2.38.0
v2.38.1
v2.38.2
v2.39.0
v2.39.1
v2.39.2
v2.39.3
v2.39.4
v2.4.0
v2.4.1
v2.40.0
v2.40.1
v2.5.0
v2.5.1
v2.6.0
v2.6.1
v2.7.0
v2.8.0
v2.9.0