跳转到帖子

Huawei EulerOS: CVE-2022-23521: git security update

recommended_posts

发布于
  • Members

Huawei EulerOS: CVE-2022-23521: git security update

Severity
10
CVSS
(AV:N/AC:L/Au:N/C:C/I:C/A:C)
Published
01/17/2023
Created
06/09/2023
Added
06/09/2023
Modified
01/28/2025

Description

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.

Solution(s)

  • huawei-euleros-2_0_sp5-upgrade-git
  • huawei-euleros-2_0_sp5-upgrade-git-core
  • huawei-euleros-2_0_sp5-upgrade-git-core-doc
  • huawei-euleros-2_0_sp5-upgrade-perl-git

References

  • https://attackerkb.com/topics/cve-2022-23521
  • CVE - 2022-23521
  • EulerOS-SA-2023-2145
  • 查看数 694
  • 已创建
  • 最后回复

参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。

游客
回帖…