Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary 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. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade git-subtreeUpgrade perl-Git-SVNUpgrade gitUpgrade gitkUpgrade git-coreUpgrade gitwebUpgrade git-svnUpgrade perl-GitUpgrade git-core-docUpgrade git-daemonUpgrade git-allUpgrade git-emailUpgrade git-guiUpgrade git-instawebUpgrade git-credential-libsecret | Feb 9, 2023 | Jan 17, 2023 |
| Alpine Linux | — | Upgrade git | Aug 22, 2024 | Jan 17, 2023 |
| Amazon Linux Ami 2 | — | Upgrade git-debuginfoUpgrade git-emailUpgrade git-daemonUpgrade git-instawebUpgrade perl-GitUpgrade git-cvsUpgrade perl-Git-SVNUpgrade git-p4Upgrade git-guiUpgrade gitwebUpgrade git-credential-libsecretUpgrade git-allUpgrade git-subtreeUpgrade git-core-docUpgrade gitUpgrade gitkUpgrade git-svnUpgrade git-core | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux | — | Upgrade git | Feb 7, 2023 | Jan 17, 2023 |
| Amazon_linux_2023 | — | Upgrade git-coreUpgrade git-cvsUpgrade gitkUpgrade git-core-debuginfoUpgrade git-debugsourceUpgrade gitUpgrade git-subtreeUpgrade git-svnUpgrade git-daemon-debuginfoUpgrade perl-Git-SVNUpgrade git-instawebUpgrade git-emailUpgrade git-core-docUpgrade git-debuginfoUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade git-guiUpgrade git-allUpgrade gitwebUpgrade git-p4Upgrade git-daemonUpgrade perl-Git | Feb 17, 2025 | Jan 17, 2023 |
| Centos_linux | — | Upgrade git-cvsUpgrade gitUpgrade emacs-git-elUpgrade git-svnUpgrade git-gnome-keyringUpgrade git-bzrUpgrade gitwebUpgrade git-daemonUpgrade gitkUpgrade git-instawebUpgrade git-allUpgrade git-emailUpgrade git-p4Upgrade git-guiUpgrade perl-GitUpgrade git-hgUpgrade git-debuginfoUpgrade perl-Git-SVNUpgrade emacs-git | 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 gitUpgrade git-help | 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 gitUpgrade git-coreUpgrade git-core-doc | Jun 9, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-core-docUpgrade git-coreUpgrade git | Apr 13, 2023 | Jan 17, 2023 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | Mar 9, 2023 | Jan 17, 2023 |
| Oracle_linux | — | Upgrade git-gnome-keyringUpgrade emacs-git-elUpgrade gitwebUpgrade emacs-gitUpgrade git-credential-libsecretUpgrade git-allUpgrade gitkUpgrade git-core-docUpgrade gitUpgrade git-hgUpgrade git-subtreeUpgrade git-instawebUpgrade git-emailUpgrade git-daemonUpgrade git-coreUpgrade git-bzrUpgrade git-svnUpgrade git-cvsUpgrade git-guiUpgrade perl-Git-SVNUpgrade perl-GitUpgrade git-p4 | Feb 7, 2023 | Jan 17, 2023 |
| Redhat_linux | — | Upgrade git-daemon-debuginfoUpgrade emacs-git-elUpgrade perl-Git-SVNUpgrade git-coreUpgrade git-gnome-keyringUpgrade git-allUpgrade git-bzrNo solution existsUpgrade git-debugsourceUpgrade gitUpgrade git-svnUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-core-docUpgrade git-emailUpgrade git-credential-libsecret-debuginfoUpgrade git-debuginfoUpgrade git-hgUpgrade perl-GitUpgrade git-daemonUpgrade git-guiUpgrade emacs-gitUpgrade git-subtreeUpgrade git-cvsUpgrade git-core-debuginfoUpgrade gitkUpgrade git-p4Upgrade git-instaweb | Feb 8, 2023 | Jan 17, 2023 |
| Rocky_linux | — | Upgrade git-subtreeUpgrade gitUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade git-core-debuginfoUpgrade git-debuginfoUpgrade git-daemon-debuginfoUpgrade git-debugsourceUpgrade git-daemonUpgrade git-core | Mar 12, 2024 | Jan 17, 2023 |
| Suse | — | Upgrade git-coreUpgrade git-p4Upgrade git-guiUpgrade git-daemonUpgrade perl-GitUpgrade git-emailUpgrade git-docUpgrade git-credential-gnome-keyringUpgrade git-webUpgrade git-archUpgrade git-credential-libsecretUpgrade gitkUpgrade git-svnUpgrade git-cvsUpgrade git | Jan 23, 2023 | Jan 17, 2023 |
| Ubuntu | — | Upgrade git (Ubuntu Pro)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 |
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