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

exploitDog

redhat логотип

CVE-2023-25815

Опубликовано: 25 апр. 2023
Источник: redhat
CVSS3: 2.2
EPSS Низкий

Описание

In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-packages, the gettext() function's implicit initialization no longer uses the runtime prefix but uses the hard-coded path C:\mingw64\share\locale to look for localized messages. And since any authenticated user has the permission to create folders in C:\ (and since C:\mingw64 does not typically exist), it is possible for low-privilege users to place fake messages in that location where git.exe will pick them up in version 2.40.1. This vulnerability is relatively hard to exploit and requires social engineering. For example, a legitimate message at the end of a clone could be maliciously modified to ask the user to direct their web browser to a malicious website, and the user might think that the message comes from Git and is legitimate. It does require local write access by the attacker, though, which makes this attack vector less likely. Version 2.40.1 contains a patch for this issue. Some workarounds are available. Do not work on a Windows machine with shared accounts, or alternatively create a C:\mingw64 folder and leave it empty. Users who have administrative rights may remove the permission to create folders in C:\.

A vulnerability was found in Git. This security flaw occurs when Git compiles with runtime prefix support and runs without translated messages, and it still uses the gettext machinery to display messages, which subsequently looks for translated messages in unexpected places. This flaw allows the malicious placement of crafted messages.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6gitOut of support scope
Red Hat Enterprise Linux 7gitOut of support scope
Red Hat Enterprise Linux 8gitFixedRHSA-2023:324622.05.2023
Red Hat Enterprise Linux 8.1 Update Services for SAP SolutionsgitFixedRHSA-2023:319217.05.2023
Red Hat Enterprise Linux 8.2 Advanced Update SupportgitFixedRHSA-2023:338231.05.2023
Red Hat Enterprise Linux 8.4 Extended Update SupportgitFixedRHSA-2023:324322.05.2023
Red Hat Enterprise Linux 8.6 Extended Update SupportgitFixedRHSA-2023:324722.05.2023
Red Hat Enterprise Linux 9gitFixedRHSA-2023:324522.05.2023
Red Hat Enterprise Linux 9.0 Extended Update SupportgitFixedRHSA-2023:324822.05.2023
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git227-gitFixedRHSA-2023:328023.05.2023

Показывать по

Дополнительная информация

Статус:

Low
https://bugzilla.redhat.com/show_bug.cgi?id=2188337git: malicious placement of crafted messages when git was compiled with runtime prefix

EPSS

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

2.2 Low

CVSS3

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

CVSS3: 3.3
ubuntu
около 2 лет назад

In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-packages, the `gettext()` function's implicit initialization no longer uses the runtime prefix but uses the hard-coded path `C:\mingw64\share\locale` to look for localized messages. And since any authenticated user has the permission to create folders in `C:\` (and since `C:\mingw64` does not typically exist), it is possible for low-privilege users to place fake messages in that location where `git.exe` will pick them up in version 2.40.1. This vulnerability is relatively hard to exploit and requires social engineering. For example, a legitimate message at the end of a clone could be maliciously modified to ask the user to direct their web browser to a malicious website, and the user might think that the message comes from Git and is legitimate. It ...

CVSS3: 3.3
nvd
около 2 лет назад

In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-packages, the `gettext()` function's implicit initialization no longer uses the runtime prefix but uses the hard-coded path `C:\mingw64\share\locale` to look for localized messages. And since any authenticated user has the permission to create folders in `C:\` (and since `C:\mingw64` does not typically exist), it is possible for low-privilege users to place fake messages in that location where `git.exe` will pick them up in version 2.40.1. This vulnerability is relatively hard to exploit and requires social engineering. For example, a legitimate message at the end of a clone could be maliciously modified to ask the user to direct their web browser to a malicious website, and the user might think that the message comes from Git and is legitimate. It do

msrc
около 2 лет назад

GitHub: CVE-2023-25815 Git looks for localized messages in an unprivileged place

CVSS3: 3.3
debian
около 2 лет назад

In Git for Windows, the Windows port of Git, no localized messages are ...

CVSS3: 3.3
fstec
около 2 лет назад

Уязвимость функции gettext() распределенной системы контроля версий Git для Windows, позволяющая нарушителю размещать произвольные сообщения

EPSS

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

2.2 Low

CVSS3