8.9

CVE-2025-62725: Docker Compose Vulnerable to Path Traversal via OCI Artifact Layer Annotations

Deferred
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) vulnerability in docker compose. EPSS estimates a 16.51% chance of exploitation in the next 30 days, higher than 97% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.9, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.9/10
010
High · v4.0 (CVE.org)
EPSS score
16.51%
0%100%
Medium · +0.75 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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

16.51%

Chance of exploitation in the next 30 days

Percentile

97%

Versus all other CVEs

30-day change

Increase +0.75 pp

From 15.76% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

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