Описание
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 6 | git | Out of support scope | ||
Red Hat Enterprise Linux 7 | git | Out of support scope | ||
Red Hat Enterprise Linux 8 | git | Fixed | RHSA-2023:3246 | 22.05.2023 |
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | git | Fixed | RHSA-2023:3192 | 17.05.2023 |
Red Hat Enterprise Linux 8.2 Advanced Update Support | git | Fixed | RHSA-2023:3382 | 31.05.2023 |
Red Hat Enterprise Linux 8.4 Extended Update Support | git | Fixed | RHSA-2023:3243 | 22.05.2023 |
Red Hat Enterprise Linux 8.6 Extended Update Support | git | Fixed | RHSA-2023:3247 | 22.05.2023 |
Red Hat Enterprise Linux 9 | git | Fixed | RHSA-2023:3245 | 22.05.2023 |
Red Hat Enterprise Linux 9.0 Extended Update Support | git | Fixed | RHSA-2023:3248 | 22.05.2023 |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-git227-git | Fixed | RHSA-2023:3280 | 23.05.2023 |
Показывать по
Дополнительная информация
Статус:
EPSS
2.2 Low
CVSS3
Связанные уязвимости
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 ...
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
GitHub: CVE-2023-25815 Git looks for localized messages in an unprivileged place
In Git for Windows, the Windows port of Git, no localized messages are ...
Уязвимость функции gettext() распределенной системы контроля версий Git для Windows, позволяющая нарушителю размещать произвольные сообщения
EPSS
2.2 Low
CVSS3