Vulnerability Details CVE-2023-25815
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:\`.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.001
EPSS Ranking 27.2%
CVSS Severity
CVSS v3 Score 3.3
Products affected by CVE-2023-25815
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.10
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.11
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.12
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.13
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.8
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.0.9
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.1.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.2.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.3.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.2.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.3.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.4.4.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.0.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.1.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.2.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.3.8
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.4.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.5.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.5.6.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.0.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.1.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.1.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.1.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.2.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.3.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.4.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.8
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.5.9
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.6.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.6.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.6.6.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.8
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.0.9
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.1.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.1.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.1.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.10.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.11.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.12
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.12.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.12.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.12.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.12.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.2.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.3.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.4.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.5.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.5.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.5.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.5.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.6.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.6.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.6.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.6.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.7.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.7.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.7.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.7.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.8.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.7.9.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.0.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.0.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.1.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.2.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.2.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.2.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.3.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.3.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.3.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.3.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.4.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.4.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.4.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.4.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.8.5.5
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.9.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.9.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.9.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.9.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:1.9.4
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.24.0
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.35.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.35.6
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.35.7
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.39.1
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.39.2
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.39.3
-
cpe:2.3:a:git_for_windows_project:git_for_windows:2.40.0
-
cpe:2.3:o:fedoraproject:fedora:37
-
cpe:2.3:o:fedoraproject:fedora:38