Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. There are no known workarounds for this issue.
CVSS Details
- CVSS 3.1 Base Score: 9.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-allUpgrade gitwebUpgrade gitUpgrade git-core-docUpgrade gitkUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade git-daemonUpgrade git-svnUpgrade git-coreUpgrade perl-Git-SVNUpgrade git-instawebUpgrade perl-GitUpgrade git-emailUpgrade git-gui | Feb 9, 2023 | Jan 17, 2023 |
| Alpine Linux | — | Upgrade git | Aug 22, 2024 | Jan 17, 2023 |
| Amazon Linux Ami 2 | — | Upgrade git-cvsUpgrade perl-GitUpgrade git-daemonUpgrade git-allUpgrade git-credential-libsecretUpgrade git-instawebUpgrade git-guiUpgrade git-svnUpgrade gitkUpgrade perl-Git-SVNUpgrade gitwebUpgrade git-debuginfoUpgrade git-core-docUpgrade git-p4Upgrade git-coreUpgrade gitUpgrade git-subtreeUpgrade git-email | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux | — | Upgrade git | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux_2023 | — | Upgrade gitUpgrade git-cvsUpgrade perl-Git-SVNUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade gitwebUpgrade gitkUpgrade git-svnUpgrade git-core-docUpgrade git-p4Upgrade git-coreUpgrade git-daemon-debuginfoUpgrade git-allUpgrade git-core-debuginfoUpgrade git-emailUpgrade perl-GitUpgrade git-debuginfoUpgrade git-instawebUpgrade git-debugsourceUpgrade git-guiUpgrade git-daemon | Feb 17, 2025 | Jan 17, 2023 |
| Centos_linux | — | Upgrade git-cvsUpgrade git-hgUpgrade perl-Git-SVNUpgrade gitUpgrade git-svnUpgrade gitkUpgrade git-bzrUpgrade git-allUpgrade git-daemonUpgrade git-emailUpgrade perl-GitUpgrade emacs-git-elUpgrade git-p4Upgrade git-guiUpgrade emacs-gitUpgrade git-gnome-keyringUpgrade git-debuginfoUpgrade git-instawebUpgrade gitweb | Feb 8, 2023 | Jan 17, 2023 |
| Debian | — | Upgrade git | Jan 30, 2023 | Jan 17, 2023 |
| Freebsd | — | Upgrade git | Feb 22, 2023 | Feb 21, 2023 |
| Gentoo Linux | — | Upgrade dev-vcs/git. | Dec 28, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp10 | — | Upgrade git-helpUpgrade git | Mar 20, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp11 | — | Upgrade gitUpgrade git-help | May 8, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp5 | — | Upgrade git-coreUpgrade git-core-docUpgrade git | Jun 9, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-core-docUpgrade gitUpgrade git-core | Apr 13, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp9 | — | Upgrade gitUpgrade git-help | Mar 9, 2023 | Jan 17, 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 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.0 version stream, or upgrade to a newer supported version of Visual Studio 2022.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 | Feb 14, 2023 |
| Oracle_linux | — | Upgrade git-subtreeUpgrade gitUpgrade git-emailUpgrade git-gnome-keyringUpgrade gitkUpgrade git-daemonUpgrade emacs-gitUpgrade git-p4Upgrade git-cvsUpgrade git-credential-libsecretUpgrade git-coreUpgrade git-instawebUpgrade emacs-git-elUpgrade gitwebUpgrade perl-Git-SVNUpgrade git-guiUpgrade git-bzrUpgrade git-core-docUpgrade git-allUpgrade perl-GitUpgrade git-hgUpgrade git-svn | Feb 7, 2023 | Jan 17, 2023 |
| Redhat_linux | — | Upgrade gitkUpgrade gitUpgrade git-debugsourceUpgrade git-daemonUpgrade git-svnUpgrade git-bzrUpgrade git-core-debuginfoUpgrade git-coreUpgrade gitwebUpgrade git-daemon-debuginfoNo solution existsUpgrade git-hgUpgrade git-subtreeUpgrade perl-Git-SVNUpgrade git-p4Upgrade git-cvsUpgrade git-credential-libsecretUpgrade emacs-git-elUpgrade git-debuginfoUpgrade perl-GitUpgrade emacs-gitUpgrade git-instawebUpgrade git-gnome-keyringUpgrade git-guiUpgrade git-credential-libsecret-debuginfoUpgrade git-core-docUpgrade git-emailUpgrade git-all | Feb 8, 2023 | Jan 17, 2023 |
| Rocky_linux | — | Upgrade git-daemon-debuginfoUpgrade git-debugsourceUpgrade git-coreUpgrade git-core-debuginfoUpgrade git-credential-libsecret-debuginfoUpgrade git-subtreeUpgrade git-credential-libsecretUpgrade git-daemonUpgrade gitUpgrade git-debuginfo | Mar 12, 2024 | Jan 17, 2023 |
| Suse | — | Upgrade git-emailUpgrade git-guiUpgrade git-p4Upgrade git-daemonUpgrade git-archUpgrade git-credential-gnome-keyringUpgrade git-cvsUpgrade perl-gitUpgrade gitkUpgrade gitUpgrade git-svnUpgrade git-credential-libsecretUpgrade git-docUpgrade git-webUpgrade git-core | Jan 23, 2023 | Jan 17, 2023 |
| Ubuntu | — | Upgrade gitUpgrade git (Ubuntu Pro) | Jan 20, 2023 | Jan 17, 2023 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Jan 17, 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