CVE-2010-2542

CVE-2010-2542 is a high-severity vulnerability in Git-scm Git with a CVSS 2.0 base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.

Key facts

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.

Frequently asked questions

What is 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.
How severe is CVE-2010-2542?
CVE-2010-2542 has a CVSS 2.0 base score of 7.5, rated high severity.
Is CVE-2010-2542 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (83rd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2010-2542?
CVE-2010-2542 affects Git-scm Git. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2010-2542?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2010-2542 published?
CVE-2010-2542 was published on 2010-08-11 and last updated on 2026-06-16.

References

Affected products (1)

More vulnerabilities in Git-scm Git

All CVEs affecting Git-scm Git →

Other CWE-787 (Out-of-bounds Write) vulnerabilities

Browse all CWE-787 (Out-of-bounds Write) vulnerabilities →