CVE-2025-62725
Docker Compose vulnerability analysis and mitigation

Overview

CVE-2025-62725 is a path traversal vulnerability discovered in Docker Compose that affects versions prior to v2.40.2. The vulnerability was disclosed on October 27, 2025, and stems from Docker Compose trusting path information embedded in remote OCI compose artifacts. When a layer includes specific annotations (com.docker.compose.extends or com.docker.compose.envfile), Compose joins the attacker-supplied value with its local cache directory and writes the file there (GitHub Advisory).

Technical details

The vulnerability is classified as a path traversal issue (CWE-22) with a CVSS v4.0 base score of 8.9 (HIGH). The attack vector is network-based (AV:N) with low attack complexity (AC:L), requiring no privileges (PR:N) but active user interaction (UI:A). The vulnerability allows for high impacts on confidentiality, integrity, and availability for both vulnerable and subsequent systems (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) (GitHub Advisory).

Impact

The vulnerability affects any platform or workflow that resolves remote OCI compose artifacts, including Docker Desktop, standalone Compose binaries on Linux, CI/CD runners, and cloud dev environments. An attacker can escape the cache directory and overwrite arbitrary files on the machine running docker compose, even when users only execute read-only commands such as 'docker compose config' or 'docker compose ps' (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Docker Compose version v2.40.2. Users are advised to upgrade to this version or later to mitigate the risk. No alternative workarounds have been provided (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Docker Compose vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62725HIGH8.9
  • Docker ComposeDocker Compose
  • github.com/docker/compose/v2
NoYesOct 27, 2025
CVE-2024-40635HIGH7.8
  • DockerDocker
  • consul-k8s-1.4
NoYesMar 17, 2025
CVE-2025-47290HIGH7.6
  • Docker ComposeDocker Compose
  • containerd
NoYesMay 20, 2025
CVE-2025-22872MEDIUM6.5
  • cAdvisorcAdvisor
  • litefs
NoYesApr 16, 2025
CVE-2025-54388MEDIUM5.1
  • cAdvisorcAdvisor
  • buf
NoYesJul 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management