CVE-2023-25815: Git looks for localized messages in the wrong place
Vulnerability summary
CVE-2023-25815 is a low (CVSS 3.3) vulnerability in fedoraproject fedora. EPSS estimates a 0.84% chance of exploitation in the next 30 days, higher than 59.1% of scored vulnerabilities.
Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 7Timeline
- 25-04-2023PublishedVulnerability first disclosed.
- 02-11-2026Last modifiedVulnerability information updated.
Description
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:\`.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated2.2LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L
- OSV · DebianEcosystem advisory · calculated2.2LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:NDiffers
- NVDNIST2.2LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.84%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.84% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-134Use of Externally-Controlled Format StringThe product uses a function that accepts a format string as an argument, but the format string originates from an external source.
Affected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- git< 2.32.7-r0 | < 2.34.8-r0 | < 2.36.6-r0 | < 2.38.5-r0 | < 2.40.1-r0
Debian1 product
- git< 1:2.39.5-0+deb12u1 | < 1:2.40.1-1
Fedoraproject1 product
- fedoraEOL37 | 38
Git_for_windows_project1 product
- git_for_windows< 2.40.1
Git-for-windows1 product
- git< 2.40.1
Ubuntu1 product
- git< 1:2.7.4-0ubuntu1.10+esm8 | < 1:2.17.1-1ubuntu0.18 | < 1:2.25.1-1ubuntu3.11 | < 1:2.34.1-1ubuntu1.9
6 vendors · 6 products
References
18 links- github.com/git-for-windows/git/security/advisories/GHSA-9w66-8mq8-5vm8X Refsource CONFIRMVendor Advisory