GitPython — это библиотека Python, используемая для взаимодействия с репозиториями Git. До версии 3.1.47 _clone() проверяет multi_options как исходный список, затем выполняет shlex.split(" ".join(multi_options)). Строка вида "--branch main --config core.hooksPath=/x" проходит проверку (начинается с --branch), но после разделения становится ["--branch", "main", "--config", "core.hooksPath=/x"].
Git применяет конфигурацию и выполняет перехваты злоумышленников во время клонирования. Эта проблема исправлена в версии 3.1.47.
Показать оригинальное описание (EN)
GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Gitpython_Project Gitpython
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
|
— |
3.1.47
|