CVE-2010-2542 describes a stack-based buffer overflow vulnerability in the is_git_directory function within Git versions prior to 1.7.2.1. This flaw allows a local attacker to potentially gain privileges by crafting a malicious .git file with an excessively long gitdir: field. With a CVSS score of 7.5, this vulnerability is considered high severity, indicating a relatively easy attack with potential for partial confidentiality, integrity, and availability impact. There is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage surrounding this CVE.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
< 1.7.2.1CPE matchmatch criteria | cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* |
CVSS version used by this source: 2.0
AV:N/AC:L/Au:N/C:P/I:P/A:P
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.
CVE-2010-2542
Sep 8, 2020Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1 allows local users to gain privileges via a long gitdir: field in a .git file in a working copy.
Aug 2, 2010Git: Arbitrary code execution via specially-crafted .git file
Jul 20, 2010