HIGH
CVE-2010-2542
CWE-787Published: August 11, 2010· Updated: Jun 16, 2026
7.5
CVSS v3.1
Official Description
Stack-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.
Technical Analysis
CVE-2010-2542 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
From a weakness classification perspective (CWE-787): Out-of-bounds write vulnerabilities can lead to data corruption, crashes, or arbitrary code execution.
CVSS v3.1 Vector Breakdown
Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.
User Interaction
Scope
Impact
ConfidentialityP
IntegrityP
AvailabilityP
AV:N/AC:L/Au:N/C:P/I:P/A:P
Affected Vendors & Products
git-scm1 product(s)
git
Source: NVD CPE · 1 total CPE entries
Exploit & PoC Resources
NO KNOWN EXPLOITNo public exploit confirmed at this time
Exploit-DB
Offensive Security exploit database
GitHub PoC Search
Community PoC repositories
Rapid7 / Metasploit
Metasploit module search
PacketStorm
Security advisories & exploits
NVD Detail
Official NIST entry
MITRE CVE
CVE Program entry
External links open in a new tab. Always verify in a controlled environment before use.
Official Patches & Advisories
All References (18)
→
http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.htmlThird Party Advisory
→
http://secunia.com/advisories/43457Third Party Advisory
→
http://www.openwall.com/lists/oss-security/2010/07/22/1Mailing List · Third Party Advisory
→
http://www.openwall.com/lists/oss-security/2010/07/22/4Mailing List · Third Party Advisory
→
http://www.securityfocus.com/bid/41891Third Party Advisory · VDB Entry
→
http://www.vupen.com/english/advisories/2011/0464Permissions Required
→
https://bugzilla.redhat.com/show_bug.cgi?id=618108Issue Tracking · Third Party Advisory
→
http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.htmlThird Party Advisory
→
http://secunia.com/advisories/43457Third Party Advisory
→
http://www.openwall.com/lists/oss-security/2010/07/22/1Mailing List · Third Party Advisory
→
http://www.openwall.com/lists/oss-security/2010/07/22/4Mailing List · Third Party Advisory
Quick Facts
CVE IDCVE-2010-2542
CVSS Score7.5 / 10
SeverityHIGH
WeaknessCWE-787
CISA KEVNo
Affected1 vendor(s)
PublishedAug 11, 2010
Related CVEs (CWE-787)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2010-2542 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.