CVE Tools

CVE-2025-62725

Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations

Published: Oct 27, 2025Updated: Oct 30, 2025 Sources: CVE List NVD GHSA BDUCWE-22

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.

CVSS Vector Breakdown

AV:NAC:LC:HI:HA:H
Exploitability
AV:NAccess Vector
Network
AC:LAccess Complexity
Low
Impact
C:HConfidentiality
H
I:HIntegrity
H
A:HAvailability
H

Weaknesses

Affected Products

dockercommercialUSCloud & SaaS
gopackage-ecosystemOSS Libraries
docker inc.commercialUSCloud & SaaSaka docker

Attack Graph

Products CVE Techniques Tactics

Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.

Exploitability

Official Patch Available

MITRE ATT&CK

2 techniques
Collection
Discovery
View detailed technique mapping

References

and 5 more references View all →

Timeline

Published
Oct 27, 2025
Last Updated
Oct 30, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2025-62725 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows