Уязвимость повышения уровня доступа в Git через эксплуатацию существующего репозитория в общем tmp-каталоге
Описание
Git (распределённая система контроля версий) уязвим к повышению уровня доступа на всех платформах. Ничего не подозревающий пользователь может быть затронут данной уязвимостью, упомянутой в CVE-2022-24765, если он, например, работает от пользователя с правами суперпользователя в общем временном (tmp
) каталоге, которым он владеет, где злоумышленник может создать репозиторий Git.
Затронутые версии ПО
- Git до 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4 и 2.30.5
Тип уязвимости
Повышение уровня доступа
Способы защиты
Самый простой способ защититься от данной уязвимости — избегать выполнения git
от пользователя с правами root/суперпользователя (или правами администратора в Windows), и, если это необходимо, минимизировать его использование. Хотя универсального обходного решения нет, систему можно укрепить от эксплуатации, удалив любые такие репозитории, если они уже существуют, и создав один от пользователя с root-правами, чтобы блокировать любые будущие атаки.
Обновление безопасности
Версии 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4 и 2.30.5 содержат исправление для данной уязвимости.
Ссылки
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
- Mailing ListThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- Mailing ListThird Party Advisory
Уязвимые конфигурации
Одно из
Одно из
EPSS
7.8 High
CVSS3
6.9 Medium
CVSS2
Дефекты
Связанные уязвимости
Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.
Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.
Git is a distributed revision control system. Git prior to versions 2. ...
EPSS
7.8 High
CVSS3
6.9 Medium
CVSS2