rclone versions 1.56.0 through 1.75.0 contain a path traversal vulnerability in the `rclone serve docker` volume plugin. newVolume() in cmd/serve/docker/volume.go computes a volume's mountpoint as filepath.Join(drv.root, name) from the attacker-supplied `name` field of a Docker VolumeDriver.Create request without verifying that the result stays within drv.root (default /var/lib/docker-volumes/rclone), and checkMountpoint() then creates that directory with file.MkdirAll before mounting. Имя тома, содержащего достаточно .. компонентов (например. "../../../../../../../etc"), следовательно, разрешает за пределами базового каталога, позволяя любому, кто может отправить запрос VolumeDriver.Create в сокет плагина - обычно демон Docker, или рабочую нагрузку, которая может запросить именованные тома в многопользовательской настройке оркестровки - чтобы привилегированный процесс плагина rclone создал каталог и подключил удаленный путь. В рекомендательных примечаниях Volume.restoreState() при перезагрузке сохранялось такое же отсутствующее состояние тома.
Исправлено в 1.75.1.
Показать оригинальное описание (EN)
rclone versions 1.56.0 through 1.75.0 contain a path traversal vulnerability in the `rclone serve docker` volume plugin. newVolume() in cmd/serve/docker/volume.go computes a volume's mountpoint as filepath.Join(drv.root, name) from the attacker-supplied `name` field of a Docker VolumeDriver.Create request without verifying that the result stays within drv.root (default /var/lib/docker-volumes/rclone), and checkMountpoint() then creates that directory with file.MkdirAll before mounting. A volume name containing enough `..` components (e.g. "../../../../../../etc") therefore resolves outside the base directory, allowing anyone able to submit a VolumeDriver.Create request to the plugin socket — normally the Docker daemon, or a workload that can request named volumes in a multi-tenant orchestration setup — to make the privileged rclone plugin process create a directory and mount a remote filesystem specified in the same request at an arbitrary host path, shadowing or disrupting system directories. The advisory notes Volume.restoreState() had the same missing validation when reloading persisted volume state. Fixed in 1.75.1.
Характеристики атаки
Последствия
Строка CVSS v4.0
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Rclone Rclone
cpe:2.3:a:rclone:rclone:*:*:*:*:*:*:*:*
|
1.56.0
|
1.75.1
|