CVE-2010-2542

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.

Published: 2010-08-11 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2010-2542 is rated Moderate Risk (59.3/100): CVSS High severity, with medium exploitation likelihood (EPSS 2.51%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2010-2542

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 2.14% 2.51% +0.37%
2 2026-06-10 1.66% 2.14% +0.48%
3 2026-05-28 1.66%

Full EPSS history (16 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2010-2542

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2010-2542

OS Trackers for CVE-2010-2542

vendor priority summary link
gentoo high CVE-2010-2542: 1 GLSA(s) (201401-06), 1 atom(s) (dev-vcs/git); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2010-2542
redhat low https://access.redhat.com/security/cve/CVE-2010-2542
ubuntu medium CVE-2010-2542 medium priority: Ubuntu including 2 source packages (git, git-core), 12 status rows across 6 suites (dapper, hardy, jaunty, karmic, lucid, upstream): not-affected 5, DNE 3, ignored 3, released 1. https://ubuntu.com/security/CVE-2010-2542

Affected software / configurations for CVE-2010-2542

Vendor Product Version Raw CPE
git-scm git < 1.7.2.1 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*

References for CVE-2010-2542

cvelogic Threat Intelligence