Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an `int` to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to `execv()`, it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to `git shell` as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade gitUpgrade gitkUpgrade gitwebUpgrade git-subtreeUpgrade git-core-docUpgrade git-allUpgrade git-emailUpgrade perl-GitUpgrade git-instawebUpgrade git-coreUpgrade git-daemonUpgrade git-guiUpgrade git-svnUpgrade git-credential-libsecretUpgrade perl-Git-SVN | May 15, 2023 | Oct 19, 2022 |
| Alpine Linux | — | Upgrade git | Mar 26, 2024 | Oct 19, 2022 |
| Amazon Linux Ami 2 | — | Upgrade gitUpgrade git-coreUpgrade git-cvsUpgrade perl-Git-SVNUpgrade git-core-docUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-subtreeUpgrade gitkUpgrade git-svnUpgrade git-guiUpgrade git-emailUpgrade git-allUpgrade git-daemonUpgrade git-p4Upgrade perl-GitUpgrade git-debuginfoUpgrade git-instaweb | Dec 7, 2022 | Oct 19, 2022 |
| Amazon_linux | — | Upgrade git | Dec 10, 2022 | Oct 18, 2022 |
| Amazon_linux_2023 | — | Upgrade git-debugsourceUpgrade git-daemon-debuginfoUpgrade gitUpgrade git-core-docUpgrade gitkUpgrade git-credential-libsecretUpgrade git-svnUpgrade gitwebUpgrade perl-GitUpgrade git-coreUpgrade git-allUpgrade git-emailUpgrade git-debuginfoUpgrade git-instawebUpgrade git-credential-libsecret-debuginfoUpgrade git-daemonUpgrade git-p4Upgrade git-cvsUpgrade git-guiUpgrade perl-Git-SVNUpgrade git-subtreeUpgrade git-core-debuginfo | Feb 17, 2025 | Oct 18, 2022 |
| Centos_linux | — | Upgrade perl-Git-SVNUpgrade git-emailUpgrade gitUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade git-svnUpgrade git-subtreeUpgrade git-daemonUpgrade git-debuginfoUpgrade git-coreUpgrade git-core-debuginfoUpgrade git-core-docUpgrade git-instawebUpgrade git-debugsourceUpgrade gitkUpgrade git-allUpgrade git-guiUpgrade git-daemon-debuginfoUpgrade perl-GitUpgrade gitweb | May 15, 2023 | Oct 19, 2022 |
| Debian | — | Upgrade git | Dec 15, 2022 | Oct 19, 2022 |
| Freebsd | — | Upgrade gitUpgrade git-liteUpgrade git-tiny | Nov 4, 2022 | Oct 18, 2022 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Dec 28, 2023 | Oct 19, 2022 |
| Huawei Euleros 2_0_sp10 | — | Upgrade gitUpgrade git-help | Feb 13, 2023 | Oct 19, 2022 |
| Huawei Euleros 2_0_sp11 | — | Upgrade gitUpgrade git-help | Jan 6, 2023 | Oct 19, 2022 |
| Huawei Euleros 2_0_sp5 | — | Upgrade git-core-docUpgrade gitUpgrade git-core | Mar 9, 2023 | Oct 19, 2022 |
| Huawei Euleros 2_0_sp8 | — | Upgrade gitUpgrade git-coreUpgrade git-core-doc | Feb 9, 2023 | Oct 19, 2022 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | Jan 9, 2023 | Oct 19, 2022 |
| Oracle_linux | — | Upgrade git-credential-libsecretUpgrade git-core-docUpgrade git-allUpgrade git-subtreeUpgrade git-emailUpgrade gitUpgrade git-coreUpgrade perl-Git-SVNUpgrade gitkUpgrade git-guiUpgrade git-instawebUpgrade git-svnUpgrade gitwebUpgrade perl-GitUpgrade git-daemon | Jul 22, 2024 | Oct 18, 2022 |
| Redhat_linux | — | Upgrade gitUpgrade git-allUpgrade gitkUpgrade git-core-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-core-docUpgrade gitwebUpgrade git-debuginfoUpgrade perl-GitUpgrade git-daemonUpgrade git-emailUpgrade git-daemon-debuginfoUpgrade git-credential-libsecretUpgrade perl-Git-SVNUpgrade git-guiUpgrade git-svnUpgrade git-debugsourceNo solution existsUpgrade git-subtreeUpgrade git-instawebUpgrade git-core | May 15, 2023 | Oct 19, 2022 |
| Suse | — | Upgrade git-p4Upgrade git-emailUpgrade git-cvsUpgrade gitkUpgrade perl-GitUpgrade git-guiUpgrade git-daemonUpgrade git-credential-libsecretUpgrade git-svnUpgrade git-archUpgrade git-coreUpgrade git-credential-gnome-keyringUpgrade git-webUpgrade git-docUpgrade git | Nov 11, 2022 | Oct 19, 2022 |
| Ubuntu | — | Upgrade gitUpgrade git (Ubuntu Pro) | Oct 19, 2022 | Oct 18, 2022 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Oct 19, 2022 |
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