Git is a revision control system. Using a specially-crafted repository, Git prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8 can be tricked into using its local clone optimization even when using a non-local transport. Though Git will abort local clones whose source `$GIT_DIR/objects` directory contains symbolic links, the `objects` directory itself may still be a symbolic link. These two may be combined to include arbitrary files based on known paths on the victim's filesystem within the malicious repository's working copy, allowing for data exfiltration in a similar manner as CVE-2022-39253.
A fix has been prepared and will appear in v2.39.2 v2.38.4 v2.37.6 v2.36.5 v2.35.7 v2.34.7 v2.33.7 v2.32.6, v2.31.7 and v2.30.8. If upgrading is impractical, two short-term workarounds are available. Avoid cloning repositories from untrusted sources with `--recurse-submodules`. Instead, consider cloning repositories without recursively cloning their submodules, and instead run `git submodule update` at each layer. Before doing so, inspect each new `.gitmodules` file to ensure that it does not contain suspicious module URLs.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade gitwebUpgrade gitkUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade git-coreUpgrade git-svnUpgrade gitUpgrade perl-Git-SVNUpgrade git-core-docUpgrade git-guiUpgrade git-instawebUpgrade perl-GitUpgrade git-daemonUpgrade git-allUpgrade git-email | May 24, 2023 | Feb 14, 2023 |
| Alpine Linux | — | Upgrade git | Aug 22, 2024 | Feb 14, 2023 |
| Amazon Linux Ami 2 | — | Upgrade git-emailUpgrade git-allUpgrade git-instawebUpgrade git-guiUpgrade git-coreUpgrade git-svnUpgrade perl-GitUpgrade git-credential-libsecretUpgrade git-daemonUpgrade git-core-docUpgrade git-debuginfoUpgrade git-p4Upgrade git-cvsUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade gitUpgrade gitkUpgrade gitweb | Mar 7, 2023 | Feb 14, 2023 |
| Amazon_linux | — | Upgrade git | Mar 7, 2023 | Feb 14, 2023 |
| Amazon_linux_2023 | — | Upgrade git-credential-libsecretUpgrade gitkUpgrade gitwebUpgrade git-daemon-debuginfoUpgrade git-core-docUpgrade git-p4Upgrade git-subtreeUpgrade git-credential-libsecret-debuginfoUpgrade git-allUpgrade gitUpgrade git-debuginfoUpgrade git-instawebUpgrade git-emailUpgrade git-debugsourceUpgrade git-daemonUpgrade perl-Git-SVNUpgrade perl-GitUpgrade git-core-debuginfoUpgrade git-svnUpgrade git-guiUpgrade git-coreUpgrade git-cvs | Feb 17, 2025 | Feb 14, 2023 |
| Centos_linux | — | Upgrade gitkUpgrade git-core-docUpgrade git-allUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-debugsourceUpgrade gitUpgrade git-core-debuginfoUpgrade perl-GitUpgrade git-emailUpgrade git-debuginfoUpgrade git-svnUpgrade git-instawebUpgrade git-guiUpgrade git-daemon-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade git-coreUpgrade git-daemon | May 23, 2023 | Feb 14, 2023 |
| Debian | — | Upgrade git | Feb 24, 2023 | Feb 14, 2023 |
| Freebsd | — | Upgrade git | Feb 22, 2023 | Feb 21, 2023 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Dec 28, 2023 | Feb 14, 2023 |
| Huawei Euleros 2_0_sp10 | — | Upgrade gitUpgrade git-help | May 18, 2023 | Feb 14, 2023 |
| Huawei Euleros 2_0_sp11 | — | Upgrade git-helpUpgrade git | Jul 5, 2023 | Feb 14, 2023 |
| Huawei Euleros 2_0_sp5 | — | Upgrade git-core-docUpgrade git-coreUpgrade git | Jun 9, 2023 | Feb 14, 2023 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | May 10, 2023 | Feb 14, 2023 |
| Microsoft Visual_studio | — | 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.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.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 current channel channel.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. | Jun 25, 2025 | Mar 14, 2023 |
| Oracle_linux | — | Upgrade git-instawebUpgrade git-subtreeUpgrade git-svnUpgrade git-daemonUpgrade perl-GitUpgrade perl-Git-SVNUpgrade git-coreUpgrade git-guiUpgrade git-credential-libsecretUpgrade gitwebUpgrade gitUpgrade git-emailUpgrade gitkUpgrade git-allUpgrade git-core-doc | May 23, 2023 | Feb 14, 2023 |
| Redhat_linux | — | Upgrade gitUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade git-core-docUpgrade perl-GitUpgrade git-allUpgrade git-credential-libsecretUpgrade git-debuginfoUpgrade git-emailNo solution existsUpgrade git-svnUpgrade gitkUpgrade git-instawebUpgrade git-daemonUpgrade perl-Git-SVNUpgrade git-core-debuginfoUpgrade git-debugsourceUpgrade git-guiUpgrade gitwebUpgrade git-daemon-debuginfoUpgrade git-core | May 23, 2023 | Feb 14, 2023 |
| Rocky_linux | — | Upgrade git-daemonUpgrade git-daemon-debuginfoUpgrade git-core-debuginfoUpgrade git-debuginfoUpgrade git-debugsourceUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade gitUpgrade git-coreUpgrade git-subtree | Mar 5, 2024 | Feb 14, 2023 |
| Suse | — | Upgrade git-cvsUpgrade git-p4Upgrade gitUpgrade git-daemonUpgrade git-credential-libsecretUpgrade git-emailUpgrade git-credential-gnome-keyringUpgrade git-archUpgrade gitkUpgrade git-coreUpgrade git-svnUpgrade git-docUpgrade git-guiUpgrade perl-GitUpgrade git-web | Feb 16, 2023 | Feb 14, 2023 |
| Ubuntu | — | Upgrade gitUpgrade git (Ubuntu Pro) | Mar 22, 2023 | Feb 14, 2023 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 25, 2025 | Feb 14, 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