CVE-2024-32002
"Git Cross Git Repository Code Execution Vulnerability"
Description
Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.
INFO
Published Date :
May 14, 2024, 7:15 p.m.
Last Modified :
Nov. 21, 2024, 9:14 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
2.2
Public PoC/Exploit Available at Github
CVE-2024-32002 has a 131 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-2024-32002
.
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).
None
An example of a repo that would make use of the CVE-2024-32002
None
TypeScript
CVE-2024-32002 是 Git 中的一个严重漏洞,允许攻击者在用户执行 git clone 操作时远程执行任意代码(RCE)。
None
Python
hihihihaa
Shell
Proof of Concept for CVE-2024-32002
Shell
This is a demo for CVE-2024-32002 POC
This is a demo for CVE-2024-32002 POC
Shell
None
None
None
None
None
HTML
None
Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-32002
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-32002
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 http://www.openwall.com/lists/oss-security/2024/05/14/2 Added Reference https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d Added Reference https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv Added Reference https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt Added Reference https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/ -
CVE Modified by [email protected]
Jun. 26, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html [No types assigned] -
CVE Modified by [email protected]
Jun. 10, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/ [No types assigned] Added Reference GitHub, Inc. http://www.openwall.com/lists/oss-security/2024/05/14/2 [No types assigned] -
CVE Modified by [email protected]
Jun. 04, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
May. 23, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Changed Reference Type https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d No Types Assigned https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d Patch Changed Reference Type https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv No Types Assigned https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv Third Party Advisory Changed Reference Type https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt No Types Assigned https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt Not Applicable Changed Reference Type https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks No Types Assigned https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks Not Applicable Added CWE NIST CWE-59 Added CPE Configuration OR *cpe:2.3:a:git:git:*:*:*:*:*:*:*:* versions up to (excluding) 2.39.4 *cpe:2.3:a:git:git:*:*:*:*:*:*:*:* versions from (including) 2.40.0 up to (excluding) 2.40.2 *cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:* *cpe:2.3:a:git:git:*:*:*:*:*:*:*:* versions from (including) 2.42.0 up to (excluding) 2.42.2 *cpe:2.3:a:git:git:*:*:*:*:*:*:*:* versions from (including) 2.43.0 up to (excluding) 2.43.4 *cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:* *cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:* -
CVE Received by [email protected]
May. 14, 2024
Action Type Old Value New Value Added Description Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a `.git/` directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. If symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources. Added Reference GitHub, Inc. https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv [No types assigned] Added Reference GitHub, Inc. https://github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991d [No types assigned] Added Reference GitHub, Inc. https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt [No types assigned] Added Reference GitHub, Inc. https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks [No types assigned] Added CWE GitHub, Inc. CWE-22 Added CWE GitHub, Inc. CWE-434 Added CVSS V3.1 GitHub, Inc. AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-32002
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-2024-32002
weaknesses.