Уязвимость раскрытия конфиденциальной информации при клонировании репозитория в Git
Описание
Git позволяет злоумышленнику получить доступ к конфиденциальной информации на устройстве жертвы при клонировании репозитория. Эта уязвимость проявляется, когда выполняется локальное клонирование репозитория (когда источник и цель клонирования находятся на одном диске). В таких случаях Git копирует содержимое каталога $GIT_DIR/objects
источника в целевую директорию, создавая жёсткие ссылки на данные источника или копируя их (если жёсткие ссылки отключены с помощью --no-hardlinks
). Злоумышленник может убедить жертву клонировать репозиторий, содержащий символическую ссылку, указывающую на конфиденциальную информацию на устройстве жертвы. Это может быть выполнено двумя способами: либо жертва клонирует вредоносный репозиторий на той же машине, либо клонирует вредоносный репозиторий, внедрённый как пустой репозиторий через подмодуль с любого источника, если они используют опцию --recurse-submodules
.
Затронутые версии ПО
- Git до 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, 2.37.4
Тип уязвимости
Раскрытие конфиденциальной информации
Ссылки
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- MitigationThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- MitigationThird Party Advisory
- Mailing ListThird Party Advisory
Уязвимые конфигурации
Одно из
Одно из
EPSS
5.5 Medium
CVSS3
Дефекты
Связанные уязвимости
Git is an open source, scalable, distributed revision control system. Versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's `$GIT_DIR/objects` directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via `--no-hardlinks`). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the `--recurse-submodules` option. Git does not create symbolic links in the `$GIT_DIR/objects...
Git is an open source, scalable, distributed revision control system. Versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's `$GIT_DIR/objects` directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via `--no-hardlinks`). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the `--recurse-submodules` option. Git does not create symbolic links in the `$GIT_DIR/objects...
GitHub: CVE-2022-39253 Local clone optimization dereferences symbolic links by default
Git is an open source, scalable, distributed revision control system. ...
EPSS
5.5 Medium
CVSS3