CVE-2025-62725
BaseFortify
Publication date: 2025-10-27
Last updated on: 2025-10-30
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| docker | compose | 2.40.2 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in Docker Compose involves trusting path information embedded in remote OCI compose artifacts. When certain annotations like com.docker.compose.extends or com.docker.compose.envfile are present, Docker Compose combines attacker-supplied values with its local cache directory and writes files there. This allows an attacker to escape the cache directory and overwrite arbitrary files on the machine running Docker Compose, even when running read-only commands.
How can this vulnerability impact me? :
An attacker exploiting this vulnerability can overwrite arbitrary files on the host machine running Docker Compose. This can lead to unauthorized modification of files, potential system compromise, data corruption, or disruption of services, even if the user only runs read-only Docker Compose commands.
What immediate steps should I take to mitigate this vulnerability?
Update Docker Compose to version 2.40.2 or later, as this version contains the fix for the vulnerability. Avoid using untrusted remote OCI compose artifacts until the update is applied.