Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 13.7%top 3.9%

CVE-2025-62725: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in docker compose

0
High
Published: 07/24/2026 (07/24/2026, 01:01:24 UTC)
Source: CVE Database V5
Vendor/Project: docker
Product: compose

Description

CVE-2025-62725 is a path traversal vulnerability in Docker Compose that allows an attacker to escape the local cache directory and overwrite arbitrary files on the host machine. This occurs because Docker Compose trusts path information embedded in remote OCI compose artifacts and improperly joins attacker-supplied values with local paths. The vulnerability affects multiple platforms and workflows that resolve remote OCI compose artifacts, including Docker Desktop, standalone Compose binaries on Linux, CI/CD runners, and cloud development environments. The issue is fixed in Docker Compose version 2.40.2.

CVSS v4.0

Score 8.9high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

Affected versions
<2.40.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/08/2026, 14:59:19 UTC

Technical Analysis

Docker Compose improperly limits pathname resolution when handling remote OCI compose artifacts containing the annotations com.docker.compose.extends or com.docker.compose.envfile. It joins attacker-controlled values from com.docker.compose.file or com.docker.compose.envfile with its local cache directory path and writes files there without sufficient validation. This allows an attacker to perform path traversal and overwrite arbitrary files on the host machine, even when running read-only commands such as 'docker compose config' or 'docker compose ps'. The vulnerability affects all Docker Compose versions prior to 2.40.2 and impacts any platform or workflow that resolves remote OCI compose artifacts.

Potential Impact

An attacker can escape the intended cache directory and overwrite arbitrary files on the machine running Docker Compose. This can lead to unauthorized file modification or code execution depending on the files overwritten. The vulnerability can be exploited even when users run read-only Docker Compose commands, increasing the attack surface. The CVSS 4.0 base score is 8.9 (high severity), reflecting network attack vector, low attack complexity, partial attack traceability, no privileges required, and high impact on confidentiality, integrity, availability, and security requirements.

Mitigation Recommendations

A fix is available in Docker Compose version 2.40.2. Users and administrators should upgrade to version 2.40.2 or later to remediate this vulnerability. There is no indication that any temporary workaround or mitigation is effective or recommended. Applying the official fix is the advised course of action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2025-10-20T19:41:22.742Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 68ffdbe2ba6dffc5e20d7f34

Added to database: 10/27/2025, 20:53:54 UTC

Last enriched: 08/08/2026, 14:59:19 UTC

Last updated: 08/09/2026, 00:41:10 UTC

Views: 1120

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses