Every CVE Search/ Get API key

CVE-2010-2542

Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1...

7.5 HighFix available

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

2.51%Up 1.0 points since Feb 4, 2022
90%50%10%1%

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 HighAV: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

Affected packages
PackageAffectedFixed
git-core
Debian: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

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 6 moreShow less
MoveEnter Open