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, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents (corresponding to the rejected hunk(s) from the given patch). 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 using `git apply` with `--reject` when applying patches from an untrusted source. Use `git apply --stat` to inspect a patch before applying; avoid applying one that create a conflict where a link corresponding to the `*.rej` file exists.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-core-docUpgrade gitkUpgrade perl-Git-SVNUpgrade gitwebUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade gitUpgrade git-coreUpgrade git-allUpgrade git-daemonUpgrade perl-GitUpgrade git-emailUpgrade git-instawebUpgrade git-guiUpgrade git-svn | May 24, 2023 | Apr 25, 2023 |
| Alpine Linux | — | Upgrade git | Mar 26, 2024 | Apr 25, 2023 |
| Amazon Linux Ami 2 | — | Upgrade perl-Git-SVNUpgrade git-svnUpgrade git-p4Upgrade git-cvsUpgrade git-coreUpgrade git-daemonUpgrade git-emailUpgrade git-guiUpgrade perl-GitUpgrade git-instawebUpgrade git-debuginfoUpgrade git-credential-libsecretUpgrade git-core-docUpgrade gitkUpgrade git-subtreeUpgrade git-allUpgrade gitUpgrade gitweb | Jun 8, 2023 | Apr 25, 2023 |
| Amazon_linux_2023 | — | Upgrade git-daemonUpgrade git-emailUpgrade git-core-debuginfoUpgrade git-instawebUpgrade git-p4Upgrade git-allUpgrade git-debuginfoUpgrade git-daemon-debuginfoUpgrade git-debugsourceUpgrade git-coreUpgrade perl-GitUpgrade git-svnUpgrade git-guiUpgrade git-core-docUpgrade gitkUpgrade git-cvsUpgrade gitUpgrade gitwebUpgrade perl-Git-SVNUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfo | Feb 17, 2025 | Apr 25, 2023 |
| Autodesk Autocad | — | Update Autodesk AutoCAD to the latest version for Windows and macOS. | Jul 22, 2025 | May 15, 2024 |
| Centos_linux | — | Upgrade git-bzrUpgrade gitwebUpgrade git-gnome-keyringUpgrade perl-GitUpgrade gitUpgrade emacs-git-elUpgrade git-allUpgrade git-svnUpgrade git-cvsUpgrade gitkUpgrade perl-Git-SVNUpgrade git-guiUpgrade git-emailUpgrade git-instawebUpgrade git-debuginfoUpgrade git-hgUpgrade git-daemonUpgrade git-p4Upgrade emacs-git | May 23, 2023 | Apr 25, 2023 |
| Debian | — | Upgrade git | Jun 27, 2024 | Apr 25, 2023 |
| Freebsd | — | Upgrade git-liteUpgrade git-tinyUpgrade 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 git-helpUpgrade git | Jan 10, 2024 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp8 | — | Upgrade gitUpgrade git-coreUpgrade git-core-doc | Jan 10, 2024 | Apr 25, 2023 |
| Huawei Euleros 2_0_sp9 | — | Upgrade gitUpgrade git-help | 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 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 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.6 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.0 version stream, or upgrade to a newer supported version of Visual Studio 2022. | Jun 25, 2025 | Jun 13, 2023 |
| Oracle_linux | — | Upgrade git-daemonUpgrade git-emailUpgrade git-p4Upgrade emacs-gitUpgrade git-coreUpgrade git-bzrUpgrade perl-Git-SVNUpgrade git-svnUpgrade git-guiUpgrade perl-GitUpgrade git-instawebUpgrade git-cvsUpgrade git-gnome-keyringUpgrade gitUpgrade git-allUpgrade gitwebUpgrade git-core-docUpgrade emacs-git-elUpgrade gitkUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade git-hg | May 23, 2023 | Apr 25, 2023 |
| Redhat_linux | — | Upgrade perl-GitUpgrade git-debugsourceUpgrade git-instawebUpgrade git-hgUpgrade git-p4Upgrade git-daemonUpgrade git-daemon-debuginfoNo solution existsUpgrade emacs-gitUpgrade git-core-debuginfoUpgrade git-guiUpgrade git-allUpgrade git-debuginfoUpgrade git-emailUpgrade git-cvsUpgrade git-credential-libsecretUpgrade gitUpgrade git-coreUpgrade git-svnUpgrade gitwebUpgrade gitkUpgrade git-gnome-keyringUpgrade emacs-git-elUpgrade git-credential-libsecret-debuginfoUpgrade perl-Git-SVNUpgrade git-subtreeUpgrade git-bzrUpgrade git-core-doc | May 23, 2023 | Apr 25, 2023 |
| Rocky_linux | — | Upgrade git-core-debuginfoUpgrade git-debuginfoUpgrade git-coreUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade git-daemonUpgrade git-debugsourceUpgrade gitUpgrade git-credential-libsecretUpgrade git-daemon-debuginfo | Mar 5, 2024 | Apr 25, 2023 |
| Suse | — | Upgrade git-credential-gnome-keyringUpgrade git-coreUpgrade git-docUpgrade git-archUpgrade gitUpgrade git-svnUpgrade perl-GitUpgrade git-webUpgrade git-credential-libsecretUpgrade git-guiUpgrade gitkUpgrade git-daemonUpgrade git-emailUpgrade git-p4Upgrade git-cvs | Apr 27, 2023 | Apr 25, 2023 |
| Ubuntu | — | Upgrade gitUpgrade git (Ubuntu Pro) | 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 |
Prioritize 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