Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

nvd логотип

CVE-2022-29187

Опубликовано: 12 июл. 2022
Источник: nvd
CVSS3: 7.8
CVSS2: 6.9
EPSS Низкий

Уязвимость повышения уровня доступа в 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 содержат исправление для данной уязвимости.

Ссылки

Уязвимые конфигурации

Конфигурация 1

Одно из

cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.30.3 (включая) до 2.30.5 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.31.2 (включая) до 2.31.4 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.32.1 (включая) до 2.32.3 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.33.2 (включая) до 2.33.4 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.34.2 (включая) до 2.34.4 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.35.2 (включая) до 2.35.4 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.36.0 (включая) до 2.36.2 (исключая)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
Версия от 2.37.0 (включая) до 2.37.1 (исключая)
Конфигурация 2

Одно из

cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
Конфигурация 3
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
Версия до 14.1 (исключая)
Конфигурация 4
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

EPSS

Процентиль: 14%
0.00046
Низкий

7.8 High

CVSS3

6.9 Medium

CVSS2

Дефекты

CWE-282
CWE-427

Связанные уязвимости

CVSS3: 7.8
ubuntu
почти 3 года назад

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.

CVSS3: 7.8
redhat
почти 3 года назад

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.

CVSS3: 7.8
debian
почти 3 года назад

Git is a distributed revision control system. Git prior to versions 2. ...

suse-cvrf
почти 3 года назад

Security update for git

suse-cvrf
почти 3 года назад

Security update for git

EPSS

Процентиль: 14%
0.00046
Низкий

7.8 High

CVSS3

6.9 Medium

CVSS2

Дефекты

CWE-282
CWE-427