CVE-2025-62725
highpriority · track · 5EPSS 0.137 · 96 %ileDEEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixeddocker-compose-0:2.33.1-slfo.1.1_2.1.aarch64 as component of SUSE Linux Micro 6.1suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-slfo.1.1_2.1.ppc64le as component of SUSE Linux Micro 6.1suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-slfo.1.1_2.1.s390x as component of SUSE Linux Micro 6.1suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-slfo.1.1_2.1.x86_64 as component of SUSE Linux Micro 6.1suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-4.1.aarch64 as component of SUSE Linux Micro 6.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-4.1.s390x as component of SUSE Linux Micro 6.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-4.1.x86_64 as component of SUSE Linux Micro 6.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.aarch64 as component of SUSE Linux Micro 6.2suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.ppc64le as component of SUSE Linux Micro 6.2suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.s390x as component of SUSE Linux Micro 6.2suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.x86_64 as component of SUSE Linux Micro 6.2suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.aarch64 as component of SUSE Linux Enterprise Server 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.aarch64 as component of SUSE Linux Enterprise Server for SAP applications 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.ppc64le as component of SUSE Linux Enterprise Server 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.ppc64le as component of SUSE Linux Enterprise Server for SAP applications 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.s390x as component of SUSE Linux Enterprise Server 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.s390x as component of SUSE Linux Enterprise Server for SAP applications 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.x86_64 as component of SUSE Linux Enterprise Server 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.x86_64 as component of SUSE Linux Enterprise Server for SAP applications 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.aarch64 as component of openSUSE Leap 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.ppc64le as component of openSUSE Leap 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.s390x as component of openSUSE Leap 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixeddocker-compose-0:2.33.1-160000.4.1.x86_64 as component of openSUSE Leap 16.0suse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.9–8.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (10)
Products and version ranges known to be affected.
advisories (7)
Vendor and ecosystem advisories describing this.
- SUSE-SU-2026:20656-1Security update for docker-compose2026-03-06csaf · suse_csafDE
Security update for docker-compose
- SUSE-SU-2026:20871-1Security update for docker-compose2026-03-26csaf · suse_csafDE
Security update for docker-compose
- SUSE-SU-2026:20949-1Security update for docker-compose2026-03-27csaf · suse_csafDE
Security update for docker-compose
- SUSE-SU-2026:20976-1Security update for docker-compose2026-03-27csaf · suse_csafDE
Security update for docker-compose
- openSUSE-SU-2026:20438-1Security update for docker-compose2026-03-27csaf · suse_csafDE
Security update for docker-compose
- GHSA-gv8h-7v7w-r22qDocker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations2025-10-27ghsa · osvUS
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. ### Impact 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. ### Patches v2.40.2 ### Workarounds NA
- GO-2025-4077Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations in github.com/docker/compose2025-10-30vendor · osvUS
Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations in github.com/docker/compose
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176cnnvd
- https://github.com/docker/compose/releasesPatchcnnvd
- https://github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22qcnnvd
- https://github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176enisa_euvd
- https://github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22qenisa_euvd
- https://github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176nvd
- https://github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22qnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan