Git - это быстрая, масштабируемая, распределенная система контроля версий с необычайно богатым набором команд, которая обеспечивает как высокоуровневые операции, так и полный доступ к внутренним. При чтении значения config Git удаляет любую обратную и прямую подачу каретки (CRLF). При записи записи настроек значения с CR не цитируются, что приводит к потере CR при последующем чтении настроек.
При инициализации подмодуля, если подмодульный путь содержит следящий CR, считывается измененный путь, в результате чего подмодуль проверяется в неправильном месте. Если существует символическая ссылка, которая указывает измененный путь к каталогу подмодулей, и подмодуль содержит исполняемый хук после проверки, сценарий может быть непреднамеренно выполнен после проверки. Эта уязвимость исправлена в v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1 и v2.50.1.
Показать оригинальное описание (EN)
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
— |
2.43.7
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.44.0
|
2.44.4
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.45.0
|
2.45.4
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.46.0
|
2.46.4
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.47.0
|
2.47.3
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.48.0
|
2.48.2
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.49.0
|
2.49.1
|
|
Git-Scm Git
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
|
2.50.0
|
2.50.1
|
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
|
— | — |
|
Apple Xcode
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
|
— |
26.0
|