Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-gv8h-7v7w-r22q

Опубликовано: 27 окт. 2025
Источник: github
Github: Прошло ревью
CVSS4: 8.9

Описание

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.

Impact

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.

Patches

v2.40.2

Workarounds

NA

Пакеты

Наименование

github.com/docker/compose/v2

go
Затронутые версииВерсия исправления

>= 2.34.0, < 2.40.2

2.40.2

EPSS

Процентиль: 7%
0.00026
Низкий

8.9 High

CVSS4

Дефекты

CWE-20
CWE-22

Связанные уязвимости

ubuntu
3 месяца назад

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.

nvd
3 месяца назад

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.

debian
3 месяца назад

Docker Compose trusts the path information embedded in remote OCI comp ...

CVSS3: 8.8
fstec
3 месяца назад

Уязвимость инструмента для управления многоконтейнерными приложениями Docker Compose, связанная с неверным ограничением имени пути к каталогу с ограниченным доступом, позволяющая нарушителю перезаписать произвольные файлы

CVSS3: 8.8
redos
2 месяца назад

Уязвимость docker-compose

EPSS

Процентиль: 7%
0.00026
Низкий

8.9 High

CVSS4

Дефекты

CWE-20
CWE-22