Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.
CVSS Details
- CVSS 3.1 Base Score: 6
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-daemonUpgrade git-svnUpgrade git-instawebUpgrade gitwebUpgrade git-credential-libsecretUpgrade git-coreUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade git-guiUpgrade gitUpgrade perl-GitUpgrade gitkUpgrade git-allUpgrade git-emailUpgrade git-core-doc | May 15, 2023 | Apr 12, 2022 |
| Alpine Linux | — | Upgrade libgit2Upgrade git | Aug 22, 2024 | Apr 12, 2022 |
| Amazon Linux Ami 2 | — | Upgrade perl-Git-SVNUpgrade gitkUpgrade git-coreUpgrade git-daemonUpgrade git-p4Upgrade git-guiUpgrade perl-GitUpgrade git-instawebUpgrade gitwebUpgrade git-emailUpgrade git-debuginfoUpgrade git-core-docUpgrade git-allUpgrade git-cvsUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade gitUpgrade git-svn | Sep 30, 2022 | Apr 12, 2022 |
| Amazon_linux | — | Upgrade git | Jun 10, 2022 | Apr 12, 2022 |
| Amazon_linux_2023 | — | Upgrade git-credential-libsecret-debuginfoUpgrade git-debuginfoUpgrade git-guiUpgrade git-cvsUpgrade git-daemonUpgrade git-instawebUpgrade perl-Git-SVNUpgrade git-coreUpgrade git-svnUpgrade git-subtreeUpgrade git-p4Upgrade git-emailUpgrade git-core-debuginfoUpgrade perl-GitUpgrade git-core-docUpgrade git-daemon-debuginfoUpgrade gitUpgrade gitkUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-allUpgrade git-debugsource | Feb 17, 2025 | Apr 12, 2022 |
| Centos_linux | — | Upgrade git-daemon-debuginfoUpgrade git-guiUpgrade git-instawebUpgrade git-svnUpgrade perl-Git-SVNUpgrade git-coreUpgrade gitkUpgrade git-core-debuginfoUpgrade git-debugsourceUpgrade gitwebUpgrade git-daemonUpgrade git-allUpgrade git-credential-libsecret-debuginfoUpgrade git-emailUpgrade perl-GitUpgrade git-subtreeUpgrade git-core-docUpgrade git-debuginfoUpgrade git-credential-libsecretUpgrade git | May 15, 2023 | Apr 12, 2022 |
| Debian | — | Upgrade git | Dec 15, 2022 | Apr 12, 2022 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Dec 28, 2023 | Apr 12, 2022 |
| Huawei Euleros 2_0_sp10 | — | Upgrade git-helpUpgrade git | Aug 2, 2022 | Apr 12, 2022 |
| Huawei Euleros 2_0_sp5 | — | Upgrade git-coreUpgrade gitUpgrade git-core-doc | Jun 17, 2022 | Apr 12, 2022 |
| Huawei Euleros 2_0_sp8 | — | Upgrade gitUpgrade git-core-docUpgrade git-core | Jun 22, 2022 | Apr 12, 2022 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | Jul 11, 2022 | Apr 12, 2022 |
| Microsoft Visual_studio | — | Update Microsoft Visual Studio 2017 to the latest version in the LTSC 15.9 version stream, or upgrade to a newer supported version of Visual Studio 2017.Update Microsoft Visual Studio 2019 to the latest version in the LTSC 16.11 version stream, or upgrade to a newer supported version of Visual Studio 2019.Update Microsoft Visual Studio 2019 to the latest version in the LTSC 16.7 version stream, or upgrade to a newer supported version of Visual Studio 2019.Update Microsoft Visual Studio 2022 to the latest version in the LTSC 17.0 version stream, or upgrade to a newer supported version of Visual Studio 2022.Update Microsoft Visual Studio 2022 to the latest version in the current channel channel.Update Microsoft Visual Studio 2019 to the latest version in the LTSC 16.9 version stream, or upgrade to a newer supported version of Visual Studio 2019. | Jun 25, 2025 | Apr 12, 2022 |
| Oracle_linux | — | Upgrade gitkUpgrade git-core-docUpgrade perl-Git-SVNUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade gitUpgrade git-svnUpgrade gitwebUpgrade git-guiUpgrade git-instawebUpgrade git-coreUpgrade git-emailUpgrade git-allUpgrade git-daemonUpgrade perl-Git | Jul 22, 2024 | Apr 12, 2022 |
| Redhat_linux | — | Upgrade git-coreUpgrade perl-GitUpgrade git-instawebUpgrade git-daemon-debuginfoUpgrade git-guiUpgrade git-core-docUpgrade git-debugsourceUpgrade gitwebNo solution existsUpgrade git-allUpgrade git-daemonUpgrade git-core-debuginfoUpgrade git-svnUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade gitkUpgrade git-debuginfoUpgrade gitUpgrade git-credential-libsecret-debuginfoUpgrade git-emailUpgrade git-credential-libsecret | May 15, 2023 | Apr 12, 2022 |
| Suse | — | Upgrade git-svnUpgrade libgit2-develUpgrade gitkUpgrade git-archUpgrade git-credential-gnome-keyringUpgrade git-cvsUpgrade git-credential-libsecretUpgrade libgit2-26-32bitUpgrade git-webUpgrade gitUpgrade git-docUpgrade libgit2-28Upgrade libgit2-1_3-32bitUpgrade git-p4Upgrade git-daemonUpgrade git-emailUpgrade libgit2-26Upgrade perl-GitUpgrade git-guiUpgrade libgit2-28-32bitUpgrade git-coreUpgrade libgit2-1_3 | Oct 26, 2022 | Apr 12, 2022 |
| Ubuntu | — | Upgrade git | Apr 13, 2022 | Apr 12, 2022 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Apr 12, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub