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 perl-Git-SVNUpgrade git-guiUpgrade git-coreUpgrade git-svnUpgrade git-daemonUpgrade perl-GitUpgrade git-emailUpgrade git-credential-libsecretUpgrade git-subtreeUpgrade git-instawebUpgrade gitwebUpgrade git-allUpgrade gitUpgrade gitkUpgrade git-core-doc | Feb 9, 2023 | Jan 17, 2023 |
| Alpine Linux | — | Upgrade git | Aug 22, 2024 | Jan 17, 2023 |
| Amazon Linux Ami 2 | — | Upgrade git-p4Upgrade git-emailUpgrade git-core-docUpgrade gitUpgrade gitkUpgrade perl-Git-SVNUpgrade gitwebUpgrade git-debuginfoUpgrade git-coreUpgrade git-subtreeUpgrade git-instawebUpgrade git-svnUpgrade git-allUpgrade perl-GitUpgrade git-cvsUpgrade git-credential-libsecretUpgrade git-daemonUpgrade git-gui | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux | — | amazon-linux-upgrade-git | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux_2023 | amazon-linux-2023-upgrade-gitamazon-linux-2023-upgrade-git-allamazon-linux-2023-upgrade-git-coreamazon-linux-2023-upgrade-git-core-debuginfoamazon-linux-2023-upgrade-git-core-docamazon-linux-2023-upgrade-git-credential-libsecretamazon-linux-2023-upgrade-git-credential-libsecret-debuginfoamazon-linux-2023-upgrade-git-cvsamazon-linux-2023-upgrade-git-daemonamazon-linux-2023-upgrade-git-daemon-debuginfoamazon-linux-2023-upgrade-git-debuginfoamazon-linux-2023-upgrade-git-debugsourceamazon-linux-2023-upgrade-git-emailamazon-linux-2023-upgrade-git-guiamazon-linux-2023-upgrade-git-instawebamazon-linux-2023-upgrade-gitkamazon-linux-2023-upgrade-git-p4amazon-linux-2023-upgrade-git-subtreeamazon-linux-2023-upgrade-git-svnamazon-linux-2023-upgrade-gitwebamazon-linux-2023-upgrade-perl-gitamazon-linux-2023-upgrade-perl-git-svn | Feb 17, 2025 | Jan 17, 2023 | |
| Centos_linux | — | Upgrade git-daemonUpgrade git-debuginfoUpgrade git-instawebUpgrade emacs-git-elUpgrade gitwebUpgrade git-emailUpgrade perl-GitUpgrade git-p4Upgrade emacs-gitUpgrade git-guiUpgrade git-allUpgrade git-gnome-keyringUpgrade git-cvsUpgrade gitUpgrade gitkUpgrade git-svnUpgrade git-hgUpgrade git-bzrUpgrade perl-Git-SVN | 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 gitUpgrade git-core-doc | Jun 9, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp8 | — | Upgrade gitUpgrade git-core-docUpgrade 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 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 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. | Jun 25, 2025 | Feb 14, 2023 |
| Oracle_linux | — | oracle-linux-upgrade-emacs-gitoracle-linux-upgrade-emacs-git-eloracle-linux-upgrade-gitoracle-linux-upgrade-git-alloracle-linux-upgrade-git-bzroracle-linux-upgrade-git-coreoracle-linux-upgrade-git-core-docoracle-linux-upgrade-git-credential-libsecretoracle-linux-upgrade-git-cvsoracle-linux-upgrade-git-daemonoracle-linux-upgrade-git-emailoracle-linux-upgrade-git-gnome-keyringoracle-linux-upgrade-git-guioracle-linux-upgrade-git-hgoracle-linux-upgrade-git-instaweboracle-linux-upgrade-gitkoracle-linux-upgrade-git-p4oracle-linux-upgrade-git-subtreeoracle-linux-upgrade-git-svnoracle-linux-upgrade-gitweboracle-linux-upgrade-perl-gitoracle-linux-upgrade-perl-git-svn | Feb 7, 2023 | Jan 17, 2023 |
| Redhat_linux | — | Upgrade git-coreUpgrade git-hgUpgrade git-subtreeUpgrade git-core-debuginfoUpgrade perl-Git-SVNUpgrade git-bzrUpgrade gitwebUpgrade git-debugsourceUpgrade git-svnUpgrade git-daemonNo solution existsUpgrade gitkUpgrade gitUpgrade git-daemon-debuginfoUpgrade git-allUpgrade git-gnome-keyringUpgrade git-cvsUpgrade git-debuginfoUpgrade git-p4Upgrade git-emailUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade git-core-docUpgrade emacs-gitUpgrade perl-GitUpgrade git-guiUpgrade git-instawebUpgrade emacs-git-el | Feb 8, 2023 | Jan 17, 2023 |
| Rocky_linux | rocky-upgrade-gitrocky-upgrade-git-corerocky-upgrade-git-core-debuginforocky-upgrade-git-credential-libsecretrocky-upgrade-git-credential-libsecret-debuginforocky-upgrade-git-daemonrocky-upgrade-git-daemon-debuginforocky-upgrade-git-debuginforocky-upgrade-git-debugsourcerocky-upgrade-git-subtree | Mar 12, 2024 | Jan 17, 2023 | |
| Suse | — | suse-upgrade-gitsuse-upgrade-git-archsuse-upgrade-git-coresuse-upgrade-git-credential-gnome-keyringsuse-upgrade-git-credential-libsecretsuse-upgrade-git-cvssuse-upgrade-git-daemonsuse-upgrade-git-docsuse-upgrade-git-emailsuse-upgrade-git-guisuse-upgrade-git-p4suse-upgrade-git-svnsuse-upgrade-git-websuse-upgrade-gitksuse-upgrade-perl-git | Jan 23, 2023 | Jan 17, 2023 |
| Ubuntu | ubuntu-pro-upgrade-gitubuntu-upgrade-git | 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