CVE-2010-2542
Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2010-2542- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2010-2542- Updated
- 2026-11-02
EUVDEUVD-2010-2546 No score
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.
- Record
EUVD-2010-2546- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-q648-58gx-r823 No score
Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1...
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.
- Record
GHSA-q648-58gx-r823- Weakness
- CWE-787
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
git-coreDebian:5.0 |
before 1:1.5.6.5-3+lenny3.1, plus listed versions 1:1.5.6.5-21:1.5.6.5-31:1.5.6.5-3+lenny11:1.5.6.5-3+lenny21:1.5.6.5-3+lenny2~bpo40+11:1.5.6.5-3+lenny3 |
1:1.5.6.5-3+lenny3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2010-2542 is a high vulnerability (CVSS 7.5) in Git-scm Git, published August 11, 2010. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.51%, the 84th percentile. Fixed in git-core 1:1.5.6.5-3+lenny3.1.
References
secunia.com/advisories/43457
bugzilla.redhat.com/show_bug.cgi?id=618108
openwall.com/lists/oss-security/2010/07/22/4
kernel.org/pub/software/scm/git/docs/RelNotes-1.7.2.1.txt
lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.html
openwall.com/lists/oss-security/2010/07/22/1
Show 6 moreShow less
vupen.com/english/advisories/2011/0464
securityfocus.com/bid/41891
git.kernel.org?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
nvd.nist.gov/vuln/detail/CVE-2010-2542
git.kernel.org?p=git/git.git;a=commit;h=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
github.com/advisories/GHSA-q648-58gx-r823