CVE-2025-62725
CVE-2025-62725 — Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations
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.
Published Updated Sources: NVD, docker (CNA), GitHub, Red Hat (VEX)
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
14%
chance of exploitation in 30 days
CVSS base
8.9
high · 2 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade compose to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
Red Hat VEX · CVE-2025-62725
workaround: No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability. The risk can be reduced by avoiding th…
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Docker | compose | < 2.40.2 | Vulnerable |
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.9 | CVSS 4.0 | high | n/a | n/a | docker (CNA) |
| 8.0 | CVSS 3.1 | high | n/a | n/a | Red Hat (VEX) |
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
Weakness & attack patterns
- CWE-22Path Traversal
Inferred from the weakness class — not observed against this CVE.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
4
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /com.docker.compose.envfile, /CD.
- Monitor for scanner or exploit-pattern traffic after 4 public PoC repositories were reported.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 8.9
Jun 17, 2026 · NVD
- 2025
Initial · CVE published
Oct 27, 2025 · NVD
References
6 on the record
- github.com/docker/compose/commit/69bcb962bfb2ea53b41aa925333d356b577d6176
Exploit, Third Party Advisory
- github.com/docker/compose/security/advisories/GHSA-gv8h-7v7w-r22q
Exploit, Third Party Advisory
- access.redhat.com/security/cve/CVE-2025-62725
Vendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2406643
Vendor Advisory
- www.cve.org/CVERecord?id=CVE-2025-62725
Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2025-62725
NVD
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-85706 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLabCVSS 10.0 · CISA KEV
- CVE-2026-48282 ColdFusion | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)CVSS 10.0 · CISA KEV
- CVE-2026-34909 Ubiquiti UniFi OS Path Traversal VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-34028 Commvault Command Center Path Traversal VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2019-11510 Ivanti Pulse Connect Secure Arbitrary File Read VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2026-104286 Fortinet FortiMail Path Traversal VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Dockerevery CVE for this vendor
- composeevery page on this product
- Path Traversalsame class
- CWE-22other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2025-62725 is Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations, a high vulnerability affecting Compose from Docker. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2025-62725. Public exploit evidence is: 4 public PoC repositories reported; 0 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 8.9 describes technical severity, while EPSS 14% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.