Reference page — cumulative record through Thursday, November 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
CVE-2023-25815
git-for-windows git — Git looks for localized messages in the wrong place
AV AC PR UI S C I A CVSS EPSS %ile KEV
L H L R U N L N 2.2 .0084 58.6 —
AFFECTED
Product Versions Fixed
git < 2.40.1 – —
TIMELINE
Feb 15 Reserved by GitHub_M
Apr 25 Published (CNA: GitHub_M)
Nov 2 RESCORED — CVE-2023-25815 (git-for-windows git). CVSS 3.3 → 2.2 (NVD).
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:\`.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| February 15, 2023 | Reserved | Reserved by GitHub_M |
| April 25, 2023 | Published | Published (CNA: GitHub_M) |
| November 2, 2026 | RESCORED | RESCORED — CVE-2023-25815 (git-for-windows git). CVSS 3.3 → 2.2 (NVD). |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| git-for-windows | git | — | < 2.40.1 | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2023-25815 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Thursday, November 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.