Skip to content
OpenAdvisories
High ALSA-2023:0610 2 CVEs

Important: git security update

Published Feb 6, 2023 · Updated Oct 29, 2026

Summary

Git is a distributed revision control system with a decentralized architecture. As opposed to centralized version control systems with a client-server model, Git ensures that each working copy of a Git repository is an exact copy with complete revision history. This not only allows the user to work on and contribute to projects without the need to have permission to push the changes to their official repositories, but also makes it possible for the user to work with no network connection.

Security Fix(es):

* git: gitattributes parsing integer overflow (CVE-2022-23521)
* git: Heap overflow in `git archive`, `git log --format` leading to RCE (CVE-2022-41903)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Fixed packages 15

ReleasePackageFixed in
AlmaLinux · 8 git 2.31.1-3.el8_7
AlmaLinux · 8 git-all 2.31.1-3.el8_7
AlmaLinux · 8 git-core 2.31.1-3.el8_7
AlmaLinux · 8 git-core-doc 2.31.1-3.el8_7
AlmaLinux · 8 git-credential-libsecret 2.31.1-3.el8_7
AlmaLinux · 8 git-daemon 2.31.1-3.el8_7
AlmaLinux · 8 git-email 2.31.1-3.el8_7
AlmaLinux · 8 git-gui 2.31.1-3.el8_7
AlmaLinux · 8 git-instaweb 2.31.1-3.el8_7
AlmaLinux · 8 git-subtree 2.31.1-3.el8_7
AlmaLinux · 8 git-svn 2.31.1-3.el8_7
AlmaLinux · 8 gitk 2.31.1-3.el8_7
AlmaLinux · 8 gitweb 2.31.1-3.el8_7
AlmaLinux · 8 perl-Git 2.31.1-3.el8_7
AlmaLinux · 8 perl-Git-SVN 2.31.1-3.el8_7

Vulnerabilities 2

  • Critical 9.8
    CVE-2022-23521 EPSS 56%

    gitattributes parsing integer overflow in git

    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 tha…

  • Critical 9.8
    CVE-2022-41903 Public exploit EPSS 44%

    Integer overflow in `git archive`, `git log --format` leading to RCE in git

    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, t…

References

  • report
    https://access.redhat.com/security/cve/CVE-2022-23521
  • report
    https://access.redhat.com/security/cve/CVE-2022-41903
  • report
    https://bugzilla.redhat.com/2162055
  • report
    https://bugzilla.redhat.com/2162056
  • advisory
    https://errata.almalinux.org/8/ALSA-2023-0610.html