Path traversalin git-for-windows git.
No public exploit found; not on exploited lists.
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.
- Upgrade git to 2.40.1 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Feb 2023CVE ID reserved by GitHub_M.
- 25 Apr 2023Published in the CVE List.
- 2 Nov 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other git vulnerabilities
Same weakness: Path traversal
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- axcheron.github.io x_refsource_MISC
- github.com x_refsource_MISC
- pubs.opengroup.org x_refsource_MISC
- www.openwall.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org
- lists.debian.org
- lists.debian.org
Patchminder. CVE-2023-25815: Path traversal in git-for-windows git. https://patchminder.com/cve/cve-2023-25815/ (accessed 5 December 2026).