CVE-2022-23521
Git Gitattributes Integer Overflow Vulnerability
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.
INFO
Published Date :
Jan. 17, 2023, 11:15 p.m.
Last Modified :
Nov. 21, 2024, 6:48 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2022-23521 has a 5 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-23521
.
URL | Resource |
---|---|
https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 | Patch Third Party Advisory |
https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89 | Third Party Advisory |
https://security.gentoo.org/glsa/202312-15 | |
https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 | Patch Third Party Advisory |
https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89 | Third Party Advisory |
https://security.gentoo.org/glsa/202312-15 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
zomotoa food app
None
None
vulnerabilities, CVE-2022-41903, and CVE-2022-23521, that affect versions 2.39 and older. Git for Windows was also patched to address an additional, Windows-specific issue known as CVE-2022-41953.
Shell
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
cve-2020-
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-23521
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-23521
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 Added Reference https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89 Added Reference https://security.gentoo.org/glsa/202312-15 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Dec. 27, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://security.gentoo.org/glsa/202312-15 [No types assigned] -
Initial Analysis by [email protected]
Jan. 26, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 No Types Assigned https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76 Patch, Third Party Advisory Changed Reference Type https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89 No Types Assigned https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89 Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions up to (including) 2.30.6 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.31.0 up to (including) 2.31.5 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.32.0 up to (including) 2.32.4 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.33.0 up to (including) 2.33.5 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.34.0 up to (including) 2.34.5 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.35.0 up to (including) 2.35.5 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.36.0 up to (including) 2.36.3 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.37.0 up to (including) 2.37.4 *cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* versions from (including) 2.38.0 up to (including) 2.38.2 *cpe:2.3:a:git-scm:git:2.39.0:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-23521
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-23521
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
2.53 }} 0.98%
score
0.90387
percentile