CVE catalog

CVE-2023-25815

git: CVE-2023-25815

[CVE catalog]

Severity
Low · CVSS 3.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.84% · Oct 25, 2026

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:\`.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangitsid1:2.55.0-1fixed
Debiangitforky1:2.53.0-1fixed
Debiangittrixie1:2.47.3-0+deb13u1fixed
Debiangitbookworm1:2.39.5-0+deb12u3fixed
Debiangitbookworm-security1:2.39.5-0+deb12u2fixed
Alpinegit3.142.32.7-r0fixed
Alpinegit3.152.34.8-r0fixed
Alpinegit3.162.36.6-r0fixed
Alpinegit3.172.38.5-r0fixed
Alpinegit3.182.40.1-r0fixed
Alpinegit3.192.40.1-r0fixed
Alpinegit3.202.40.1-r0fixed
Alpinegit3.212.40.1-r0fixed
Alpinegit3.222.40.1-r0fixed
Alpinegit3.232.40.1-r0fixed
Alpinegit3.242.40.1-r0fixed
Ubuntugitpro1:2.14.1-1ubuntu4vulnerable
Ubuntugitpro1:2.15.1-1ubuntu2vulnerable
Ubuntugitpro1:2.17.0-1ubuntu1vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.1vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.3vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.4vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.5vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.6vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.7vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.8vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.9vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.10vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.11vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.12vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.13vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.14vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.15vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.16vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.17vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.18vulnerable
Ubuntugitpro1:2.17.1-1ubuntu0.18+esm1fixed
Ubuntugitpro1:2.5.0-1vulnerable
Ubuntugitpro1:2.6.2-1vulnerable
Ubuntugitpro1:2.6.3-1vulnerable
Ubuntugitpro1:2.6.4-1vulnerable
Ubuntugitpro1:2.7.0~rc3-1vulnerable
Ubuntugitpro1:2.7.0-1vulnerable
Ubuntugitpro1:2.7.3-0ubuntu1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.2vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.3vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.4vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.5vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.6vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.7vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.8vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.9vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm3vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm4vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm5vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm6vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm7vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm8fixed
Ubuntugit18.041:2.14.1-1ubuntu4vulnerable
Ubuntugit18.041:2.15.1-1ubuntu2vulnerable
Ubuntugit18.041:2.17.0-1ubuntu1vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.1vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.3vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.4vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.5vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.6vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.7vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.8vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.9vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.10vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.11vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.12vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.13vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.14vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.15vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.16vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.17vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.18fixed
Ubuntugit20.041:2.20.1-2ubuntu1vulnerable
Ubuntugit20.041:2.24.0-1ubuntu1vulnerable
Ubuntugit20.041:2.24.0-1ubuntu2vulnerable
Ubuntugit20.041:2.25.0-1ubuntu1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu2vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.2vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.3vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.4vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.5vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.6vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.7vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.8vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.10vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.11fixed
Ubuntugit22.041:2.32.0-1ubuntu1vulnerable
Ubuntugit22.041:2.33.1-1ubuntu1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.2vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.4vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.5vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.6vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.8vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.9fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangitsourcesid1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourceforky1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourcetrixie1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourcebookworm1:2.39.5-0+deb12u1not yet assignedNot reported[1034835]
Alpinegitapk3.142.32.7-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.152.34.8-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.162.36.6-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.172.38.5-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.182.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.192.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.202.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.212.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.222.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.232.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Alpinegitapk3.242.40.1-r0Not reportedALPINE-CVE-2023-25815Not reported
Ubuntugitdebpro1:2.17.1-1ubuntu0.18+esm1Not reportedUSN-7023-1Not reported
Ubuntugitdebpro1:2.7.4-0ubuntu1.10+esm8Not reportedUBUNTU-CVE-2023-25815Not reported
Ubuntugitdeb18.041:2.17.1-1ubuntu0.18Not reportedUBUNTU-CVE-2023-25815Not reported
Ubuntugitdeb20.041:2.25.1-1ubuntu3.11Not reportedUBUNTU-CVE-2023-25815Not reported
Ubuntugitdeb22.041:2.34.1-1ubuntu1.9Not reportedUBUNTU-CVE-2023-25815Not reported

[Debian bug #1034835]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References