Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-allUpgrade gitUpgrade gitwebUpgrade gitkUpgrade git-core-docUpgrade git-svnUpgrade git-emailUpgrade perl-Git-SVNUpgrade perl-GitUpgrade git-coreUpgrade git-guiUpgrade git-daemonUpgrade git-instawebUpgrade git-subtreeUpgrade git-credential-libsecret | May 15, 2023 | Jul 12, 2022 |
| Alpine Linux | — | Upgrade gitUpgrade libgit2 | Aug 22, 2024 | Jul 12, 2022 |
| Amazon Linux Ami 2 | — | Upgrade git-p4Upgrade git-debuginfoUpgrade git-instawebUpgrade gitkUpgrade git-daemonUpgrade git-guiUpgrade git-cvsUpgrade perl-GitUpgrade git-subtreeUpgrade git-emailUpgrade git-svnUpgrade perl-Git-SVNUpgrade git-core-docUpgrade gitUpgrade git-coreUpgrade gitwebUpgrade git-allUpgrade git-credential-libsecret | Sep 30, 2022 | Jul 12, 2022 |
| Amazon_linux | — | Upgrade git | Aug 5, 2022 | Jul 12, 2022 |
| Amazon_linux_2023 | — | Upgrade git-guiUpgrade git-subtreeUpgrade git-instawebUpgrade git-coreUpgrade git-p4Upgrade git-core-debuginfoUpgrade git-daemonUpgrade git-debuginfoUpgrade perl-Git-SVNUpgrade git-svnUpgrade git-cvsUpgrade git-credential-libsecret-debuginfoUpgrade git-emailUpgrade perl-GitUpgrade git-credential-libsecretUpgrade git-core-docUpgrade gitUpgrade git-allUpgrade git-debugsourceUpgrade gitwebUpgrade gitkUpgrade git-daemon-debuginfo | Feb 17, 2025 | Jul 12, 2022 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Jul 12, 2022 |
| Centos_linux | — | Upgrade git-debuginfoUpgrade git-allUpgrade gitwebUpgrade gitUpgrade gitkUpgrade git-credential-libsecret-debuginfoUpgrade git-core-docUpgrade git-core-debuginfoUpgrade perl-Git-SVNUpgrade perl-GitUpgrade git-guiUpgrade git-daemon-debuginfoUpgrade git-daemonUpgrade git-svnUpgrade git-credential-libsecretUpgrade git-instawebUpgrade git-emailUpgrade git-subtreeUpgrade git-coreUpgrade git-debugsource | May 15, 2023 | Jul 12, 2022 |
| Debian | — | Upgrade git | Dec 15, 2022 | Jul 12, 2022 |
| Freebsd | — | Upgrade git | Nov 4, 2022 | Jul 12, 2022 |
| Gentoo Linux | — | Upgrade dev-vcs/git.Upgrade dev-libs/libgit2. | Dec 28, 2023 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp10 | — | Upgrade git-helpUpgrade git | Nov 3, 2022 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-coreUpgrade gitUpgrade git-core-doc | Oct 11, 2022 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp9 | — | Upgrade gitUpgrade git-help | Sep 14, 2022 | Jul 12, 2022 |
| Oracle_linux | — | Upgrade gitwebUpgrade git-credential-libsecretUpgrade git-svnUpgrade git-emailUpgrade git-subtreeUpgrade gitUpgrade perl-Git-SVNUpgrade git-allUpgrade git-core-docUpgrade git-guiUpgrade git-daemonUpgrade git-coreUpgrade perl-GitUpgrade gitkUpgrade git-instaweb | Jul 22, 2024 | Jul 12, 2022 |
| Redhat_linux | — | Upgrade git-daemonUpgrade git-coreUpgrade git-debugsourceUpgrade git-core-debuginfoUpgrade git-instawebUpgrade git-guiUpgrade git-debuginfoUpgrade git-allUpgrade git-emailUpgrade perl-GitUpgrade git-svnUpgrade git-core-docUpgrade git-subtreeUpgrade gitUpgrade git-credential-libsecret-debuginfoUpgrade gitwebUpgrade git-daemon-debuginfoUpgrade gitkUpgrade perl-Git-SVNUpgrade git-credential-libsecret | May 15, 2023 | Jul 12, 2022 |
| Suse | — | Upgrade libgit2-28-32bitUpgrade gitkUpgrade libgit2-26-32bitUpgrade git-webUpgrade gitUpgrade git-p4Upgrade libgit2-28Upgrade libgit2-1_3-32bitUpgrade perl-GitUpgrade libgit2-1_3Upgrade git-archUpgrade git-svnUpgrade git-credential-gnome-keyringUpgrade git-daemonUpgrade libgit2-develUpgrade git-emailUpgrade git-credential-libsecretUpgrade git-guiUpgrade git-docUpgrade git-coreUpgrade git-cvsUpgrade libgit2-26 | Oct 26, 2022 | Jul 12, 2022 |
| Ubuntu | — | Upgrade git | Mar 22, 2023 | Jul 12, 2022 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Jul 12, 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