Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

debian логотип

CVE-2022-23521

Опубликовано: 17 янв. 2023
Источник: debian
EPSS Средний

Описание

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.

Пакеты

ПакетСтатусВерсия исправленияРелизТип
gitfixed1:2.39.1-0.1package

Примечания

  • https://www.openwall.com/lists/oss-security/2023/01/17/4

  • https://github.com/git/git/commit/eb22e7dfa23da6bd9aed9bd1dad69e1e8e167d24

  • https://github.com/git/git/commit/8d0d48cf2157cfb914db1f53b3fe40785b86f3aa

  • https://github.com/git/git/commit/24557209500e6ed618f04a8795a111a0c491a29c

  • https://github.com/git/git/commit/34ace8bad02bb14ecc5b631f7e3daaa7a9bba7d9

  • https://github.com/git/git/commit/447ac906e189535e77dcb1f4bbe3f1bc917d4c12

  • https://github.com/git/git/commit/e1e12e97ac73ded85f7d000da1063a774b3cc14f

  • https://github.com/git/git/commit/a60a66e409c265b2944f18bf43581c146812586d

  • https://github.com/git/git/commit/d74b1fd54fdbc45966d12ea907dece11e072fb2b

  • https://github.com/git/git/commit/dfa6b32b5e599d97448337ed4fc18dd50c90758f

  • https://github.com/git/git/commit/3c50032ff5289cc45659f21949c8d09e52164579

  • https://github.com/git/git/files/10430260/X41-OSTIF-Gitlab-Git-Security-Audit-20230117-public.pdf

EPSS

Процентиль: 94%
0.1587
Средний

Связанные уязвимости

CVSS3: 9.8
ubuntu
больше 2 лет назад

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 patche...

CVSS3: 9.8
redhat
больше 2 лет назад

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 patche...

CVSS3: 9.8
nvd
больше 2 лет назад

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 i

msrc
больше 2 лет назад

GitHub: CVE-2022-23521 gitattributes parsing integer overflow

CVSS3: 9.8
fstec
больше 2 лет назад

Уязвимость механизма определения атрибутов для путей gitattributes распределенной системы контроля версий Git, позволяющая нарушителю выполнить произвольный код

EPSS

Процентиль: 94%
0.1587
Средний