8.9

CVE-2025-62725: docker compose Path Traversal

CVSS: 8.9v4.0HighDeferred
AliasesSUSE-SU-2026:20871-1UBUNTU-CVE-2025-62725DEBIAN-CVE-2025-62725
Published 27-10-2025Last modified 28-10-2025

Vulnerability summary

CVE-2025-62725 is a high (CVSS 8.9) Path Traversal vulnerability in docker compose. EPSS estimates a 13.70% chance of exploitation in the next 30 days, higher than 96.4% of scored vulnerabilities.

Overall risk
38/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.9/10
010
High · v4.0 (CVE.org)
EPSS score
13.70%
0%100%
Medium · +0.05 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 6

Timeline

  1. 27-10-2025
    PublishedVulnerability first disclosed.
  2. 28-10-2025
    Last modifiedVulnerability information updated.

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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

13.70%

Chance of exploitation in the next 30 days

Percentile

96%

Versus all other CVEs

30-day change

+0.05 pp

From 13.65% on 20-09-2026

20-09-202620-10-2026
EPSS score
13.70%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • docker-composeAll versions (No fix recorded)
Docker1 product
Github.com/docker1 product
  • composeAll versions (No fix recorded)
Github.com/docker/compose1 product
  • v2≥ 2.34.0, < 2.40.2 | < 2.40.2
Suse1 product
  • docker-compose&distro=SUSE Linux Micro 6.0< 2.33.1-4.1
Ubuntu1 product
  • docker-composeAll versions (No fix recorded)

6 vendors · 6 products

References

10 links