---
title: "CVE-2022-23521"
canonical_url: "https://pkgseek.com/security/CVE-2022-23521"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2022-23521

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

CVE-2022-23521 严重级别为 CRITICAL (9.8)，共索引 66 条受影响软件包构建记录，涉及 4 个发行版。

- **级别 / 评分**: CRITICAL (9.8)
- **受影响构建数**: 66
- **涉及发行版**: 4
- **已标明修复版本发行版**: Alibaba Cloud Linux, Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Alibaba Cloud Linux | 3 | git | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-all | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-core | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-core-doc | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-credential-libsecret | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-daemon | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-email | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-gui | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-instaweb | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | gitk | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-subtree | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | git-svn | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | gitweb | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | perl-Git | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Alibaba Cloud Linux | 3 | perl-Git-SVN | 2.31.1-2.al8 | 2.31.1-3.1.al8 |
| Oracle Linux | 8 | git | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-all | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-core | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-core-doc | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-credential-libsecret | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-daemon | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-email | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-gui | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-instaweb | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | gitk | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-subtree | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | git-svn | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | gitweb | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | perl-Git | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 8 | perl-Git-SVN | 2.31.1-2.el8 | 2.31.1-3.el8_7 |
| Oracle Linux | 9 | git | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-all | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-core | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-core-doc | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-credential-libsecret | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-daemon | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-email | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-gui | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-instaweb | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | gitk | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-subtree | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | git-svn | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | gitweb | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | perl-Git | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Oracle Linux | 9 | perl-Git-SVN | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-all | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-core | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-core-doc | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-credential-libsecret | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-daemon | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-email | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-gui | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-instaweb | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | gitk | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-subtree | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | git-svn | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | gitweb | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | perl-Git | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Red Hat Enterprise Linux | 9.8 | perl-Git-SVN | 2.31.1-2.el9.2 | 2.31.1-3.el9_1 |
| Ubuntu | focal | git | 1:2.25.1-1ubuntu3 | 1:2.25.1-1ubuntu3.7 |
| Ubuntu | focal | git-doc | 1:2.25.1-1ubuntu3 | 1:2.25.1-1ubuntu3.7 |
| Ubuntu | focal | git-man | 1:2.25.1-1ubuntu3 | 1:2.25.1-1ubuntu3.7 |
| Ubuntu | jammy | git | 1:2.34.1-1ubuntu1 | 1:2.34.1-1ubuntu1.6 |
| Ubuntu | jammy | git-doc | 1:2.34.1-1ubuntu1 | 1:2.34.1-1ubuntu1.6 |
| Ubuntu | jammy | git-man | 1:2.34.1-1ubuntu1 | 1:2.34.1-1ubuntu1.6 |
