Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, a specially crafted `.gitmodules` file with submodule URLs that are longer than 1024 characters can used to exploit a bug in `config.c::git_config_copy_or_rename_section_in_file()`. This bug can be used to inject arbitrary configuration into a user's `$GIT_DIR/config` when attempting to remove the configuration section associated with that submodule. When the attacker injects configuration values which specify executables to run (such as `core.pager`, `core.editor`, `core.sshCommand`, etc.) this can lead to a remote code execution. A fix A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. As a workaround, avoid running `git submodule deinit` on untrusted repositories or without prior inspection of any submodule sections in `$GIT_DIR/config`.
CVSS Details
- CVSS 3.1 Base Score: 7
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-emailUpgrade git-daemonUpgrade git-coreUpgrade perl-Git-SVNUpgrade git-instawebUpgrade git-allUpgrade gitkUpgrade git-guiUpgrade perl-GitUpgrade gitwebUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade git-core-docUpgrade gitUpgrade git-svn | May 24, 2023 | Apr 25, 2023 |
| Alpine Linux | — | Upgrade git | Mar 26, 2024 | Apr 25, 2023 |
| Amazon Linux Ami 2 | — | Upgrade git-debuginfoUpgrade git-allUpgrade gitwebUpgrade git-core-docUpgrade gitkUpgrade perl-GitUpgrade git-p4Upgrade gitUpgrade git-credential-libsecretUpgrade git-svnUpgrade perl-Git-SVNUpgrade git-daemonUpgrade git-guiUpgrade git-coreUpgrade git-instawebUpgrade git-subtreeUpgrade git-cvsUpgrade git-email | Jun 8, 2023 | Apr 25, 2023 |
| Amazon_linux_2023 | — | Upgrade git-core-docUpgrade git-credential-libsecretUpgrade git-allUpgrade gitwebUpgrade gitkUpgrade gitUpgrade perl-Git-SVNUpgrade git-instawebUpgrade git-debugsourceUpgrade git-cvsUpgrade perl-GitUpgrade git-svnUpgrade git-guiUpgrade git-emailUpgrade git-debuginfoUpgrade git-coreUpgrade git-subtreeUpgrade git-daemonUpgrade git-core-debuginfoUpgrade git-p4Upgrade git-daemon-debuginfoUpgrade git-credential-libsecret-debuginfo | Feb 17, 2025 | Apr 25, 2023 |
| Centos_linux | — | Upgrade gitwebUpgrade perl-Git-SVNUpgrade git-guiUpgrade perl-GitUpgrade git-gnome-keyringUpgrade git-svnUpgrade git-daemonUpgrade git-bzrUpgrade git-instawebUpgrade git-allUpgrade git-hgUpgrade emacs-git-elUpgrade git-debuginfoUpgrade git-cvsUpgrade gitUpgrade git-emailUpgrade emacs-gitUpgrade git-p4Upgrade gitk | May 23, 2023 | Apr 25, 2023 |
| Debian | — | Upgrade git | Jun 27, 2024 | Apr 25, 2023 |
| Freebsd | — | Upgrade git-tinyUpgrade git-liteUpgrade git | Apr 27, 2023 | Apr 26, 2023 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Dec 28, 2023 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp10 | — | Upgrade git-helpUpgrade git | Jul 18, 2023 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp11 | — | Upgrade gitUpgrade git-help | Jan 10, 2024 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-coreUpgrade gitUpgrade git-core-doc | Jan 10, 2024 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | Jul 10, 2023 | Apr 25, 2023 |
| Microsoft Visual_studio | — | 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 2022 to the latest version in the LTSC 17.4 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.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 LTSC 17.2 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.6 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. | Jun 25, 2025 | Jun 13, 2023 |
| Oracle_linux | — | Upgrade git-hgUpgrade gitkUpgrade emacs-git-elUpgrade gitwebUpgrade git-daemonUpgrade git-guiUpgrade perl-Git-SVNUpgrade git-bzrUpgrade git-svnUpgrade git-instawebUpgrade git-coreUpgrade git-allUpgrade git-credential-libsecretUpgrade perl-GitUpgrade git-core-docUpgrade git-gnome-keyringUpgrade git-cvsUpgrade gitUpgrade emacs-gitUpgrade git-subtreeUpgrade git-emailUpgrade git-p4 | May 23, 2023 | Apr 25, 2023 |
| Redhat_linux | — | Upgrade emacs-gitUpgrade git-guiUpgrade gitwebNo solution existsUpgrade git-core-debuginfoUpgrade perl-GitUpgrade git-allUpgrade git-core-docUpgrade emacs-git-elUpgrade git-instawebUpgrade git-gnome-keyringUpgrade git-debugsourceUpgrade git-daemonUpgrade git-p4Upgrade git-daemon-debuginfoUpgrade git-credential-libsecretUpgrade git-cvsUpgrade git-hgUpgrade gitUpgrade git-emailUpgrade git-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade gitkUpgrade git-coreUpgrade git-bzrUpgrade git-svnUpgrade perl-Git-SVN | May 23, 2023 | Apr 25, 2023 |
| Rocky_linux | — | Upgrade git-daemonUpgrade git-credential-libsecret-debuginfoUpgrade git-credential-libsecretUpgrade git-debuginfoUpgrade git-core-debuginfoUpgrade git-debugsourceUpgrade gitUpgrade git-coreUpgrade git-subtreeUpgrade git-daemon-debuginfo | Mar 5, 2024 | Apr 25, 2023 |
| Suse | — | Upgrade git-cvsUpgrade git-daemonUpgrade git-p4Upgrade git-emailUpgrade git-svnUpgrade git-credential-gnome-keyringUpgrade git-archUpgrade git-guiUpgrade gitkUpgrade git-webUpgrade git-credential-libsecretUpgrade perl-GitUpgrade git-coreUpgrade git-docUpgrade git | Apr 27, 2023 | Apr 25, 2023 |
| Ubuntu | — | Upgrade git (Ubuntu Pro)Upgrade git | May 4, 2023 | Apr 25, 2023 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 25, 2025 | Apr 25, 2023 |
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