CVE-2023-25815: Git looks for localized messages in the wrong place
git-for-windows · git
Affected: git-for-windows · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 58% of scored CVEs
DescriptionCVE.org
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:\`.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- git-for-windows · git< 2.40.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- git-for-windows
- Published
- April 2023
CoverageNo articles yet
No CyberSIXT article names CVE-2023-25815 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-22cwe.mitre.org
- github.com/git-for-windows/git/security/advisories/GHSA-9w66-8mqgithub.com
- github.com/msys2/MINGW-packages/pull/10461github.com
- axcheron.github.io/exploit-101-format-strings/#writing-to-the-staxcheron.github.io
- github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1github.com
- pubs.opengroup.org/onlinepubs/9699919799/functions/printf.htmlpubs.opengroup.org
- openwall.com/lists/oss-security/2023/04/25/2openwall.com
- lists.fedoraproject.org/archives/list/package-announce@lists.fedlists.fedoraproject.org
- lists.fedoraproject.org/archives/list/package-announce@lists.fedlists.fedoraproject.org
- lists.fedoraproject.org/archives/list/package-announce@lists.fedlists.fedoraproject.org
- security.gentoo.org/glsa/202312-15security.gentoo.org
- lists.debian.org/debian-lts-announce/2024/06/msg00018.htmllists.debian.org
- lists.debian.org/debian-lts-announce/2024/09/msg00009.htmllists.debian.org