Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When reading a config value, Git strips any trailing carriage return and line feed (CRLF). When writing a config entry, values with a trailing CR are not quoted, causing the CR to be lost when the config is later read. When initializing a submodule, if the submodule path contains a trailing CR, the altered path is read resulting in the submodule being checked out to an incorrect location. If a symlink exists that points the altered path to the submodule hooks directory, and the submodule contains an executable post-checkout hook, the script may be unintentionally executed after checkout. This vulnerability is fixed in v2.43.7, v2.44.4, v2.45.4, v2.46.4, v2.47.3, v2.48.2, v2.49.1, and v2.50.1.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-credential-libsecretUpgrade git-svnUpgrade gitUpgrade git-allUpgrade perl-Git-SVNUpgrade git-coreUpgrade gitwebUpgrade git-instawebUpgrade git-subtreeUpgrade git-core-docUpgrade gitkUpgrade git-guiUpgrade git-emailUpgrade git-daemonUpgrade perl-Git | Jul 24, 2025 | Jul 8, 2025 |
| Alpine Linux | — | Upgrade git | Aug 8, 2025 | Jul 8, 2025 |
| Amazon Linux Ami 2 | — | Upgrade git-subtreeUpgrade git-emailUpgrade git-guiUpgrade git-daemonUpgrade gitkUpgrade git-cvsUpgrade git-allUpgrade git-debuginfoUpgrade git-instawebUpgrade git-p4Upgrade git-core-docUpgrade perl-GitUpgrade git-coreUpgrade gitUpgrade gitwebUpgrade git-credential-libsecretUpgrade perl-Git-SVNUpgrade git-svn | May 20, 2026 | May 20, 2026 |
| Amazon_linux_2023 | — | Upgrade git-debugsourceUpgrade git-cvsUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade git-daemon-debuginfoUpgrade git-coreUpgrade git-instawebUpgrade git-svnUpgrade perl-Git-SVNUpgrade gitUpgrade git-daemonUpgrade gitwebUpgrade gitkUpgrade git-guiUpgrade git-credential-libsecret-debuginfoUpgrade git-allUpgrade git-p4Upgrade git-debuginfoUpgrade perl-GitUpgrade git-emailUpgrade git-core-debuginfoUpgrade git-core-doc | Jul 30, 2025 | Jul 8, 2025 |
| Debian | — | Upgrade git | Jul 10, 2025 | Jul 8, 2025 |
| Freebsd | — | Upgrade git-svnUpgrade git-guiUpgrade git-cvsUpgrade gitUpgrade git-p4 | Jul 9, 2025 | Jul 8, 2025 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Jul 9, 2025 | Jul 8, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade git-helpUpgrade git | Sep 15, 2025 | Sep 9, 2025 |
| Huawei Euleros 2_0_sp11 | — | Upgrade git-helpUpgrade git | Oct 14, 2025 | Sep 9, 2025 |
| Huawei Euleros 2_0_sp12 | — | Upgrade git-coreUpgrade git-helpUpgrade git | Sep 15, 2025 | Sep 9, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade gitUpgrade git-coreUpgrade git-help | Oct 24, 2025 | Sep 9, 2025 |
| Microsoft Visual_studio | — | Update Microsoft Visual Studio 2022 to the latest version in the LTSC 17.12 version stream, or upgrade to a newer supported version of Visual Studio 2022.Update Microsoft Visual Studio 2022 to the latest version in the LTSC 17.8 version stream, or upgrade to a newer supported version of Visual Studio 2022.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 2022 to the latest version in the current channel channel.Update Microsoft Visual Studio 2022 to the latest version in the LTSC 17.10 version stream, or upgrade to a newer supported version of Visual Studio 2022.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. | Jul 10, 2025 | Jul 8, 2025 |
| Oracle_linux | — | Upgrade git-daemonUpgrade gitkUpgrade git-subtreeUpgrade git-gnome-keyringUpgrade git-coreUpgrade git-emailUpgrade perl-Git-SVNUpgrade git-cvsUpgrade git-p4Upgrade git-svnUpgrade git-credential-libsecretUpgrade git-hgUpgrade gitUpgrade git-bzrUpgrade emacs-gitUpgrade git-instawebUpgrade git-guiUpgrade perl-GitUpgrade gitwebUpgrade git-core-docUpgrade git-allUpgrade emacs-git-el | Jul 23, 2025 | Jul 8, 2025 |
| Redhat Openshift | — | Upgrade ose-rhel-coreos | Aug 10, 2026 | Jul 8, 2025 |
| Redhat_linux | — | No solution existsUpgrade git-core-docUpgrade gitkUpgrade git-credential-libsecretUpgrade perl-GitUpgrade git-hgUpgrade emacs-git-elUpgrade gitUpgrade git-allUpgrade git-debugsourceUpgrade git-daemon-debuginfoUpgrade gitwebUpgrade git-guiUpgrade git-gnome-keyringUpgrade git-debuginfoUpgrade git-coreUpgrade git-svnUpgrade perl-Git-SVNUpgrade git-cvsUpgrade git-core-debuginfoUpgrade git-emailUpgrade git-instawebUpgrade git-daemonUpgrade git-bzrUpgrade git-credential-libsecret-debuginfoUpgrade emacs-gitUpgrade git-p4Upgrade git-subtree | Jul 9, 2025 | Jul 8, 2025 |
| Rocky_linux | — | Upgrade git-subtreeUpgrade git-credential-libsecret-debuginfoUpgrade git-debuginfoUpgrade git-daemonUpgrade git-core-debuginfoUpgrade git-debugsourceUpgrade git-daemon-debuginfoUpgrade git-credential-libsecretUpgrade git-coreUpgrade git | Feb 5, 2026 | Jul 29, 2025 |
| Suse | — | Upgrade git-webUpgrade git-credential-libsecretUpgrade git-docUpgrade git-svnUpgrade git-coreUpgrade git-emailUpgrade git-lfsUpgrade gitUpgrade git-p4Upgrade git-cvsUpgrade perl-GitUpgrade git-daemonUpgrade git-archUpgrade gitkUpgrade git-gui | Dec 5, 2025 | Jul 22, 2025 |
| Ubuntu | — | Upgrade git (Ubuntu Pro)Upgrade gitk (Ubuntu Pro)Upgrade git-guiUpgrade gitUpgrade git-gui (Ubuntu Pro)Upgrade gitk | Jul 9, 2025 | Jul 8, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 10, 2025 | Jul 8, 2025 |
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