CVE-2025-62725 - CVE House
Back to Database
Status published High CVE-2025-62725

Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations

Vulnerability 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 Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-62725

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

compose
Vulnerable Versions:
< 2.40.2

Timeline

Official Publish: October 27th, 2025
Last Modified: October 28th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

Weaknesses (CWE)