What’s Vulnerable › Vulnerabilities
CVE-2010-2542
- Severity: high (CVSS 7.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2010-08-11 · updated 2026-06-16
- Weakness: CWE-787
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.
Affected products
- git: before 1.7.2.1 — fixed in 1.7.2.1
How to fix
Upgrade to a fixed version: git 1.7.2.1. Check the vendor advisory for mitigations.
References
- http://git.kernel.org/?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
- http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.html
- http://secunia.com/advisories/43457
- http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.7.2.1.txt
- http://www.openwall.com/lists/oss-security/2010/07/22/1
- http://www.openwall.com/lists/oss-security/2010/07/22/4
- http://www.securityfocus.com/bid/41891
- http://www.vupen.com/english/advisories/2011/0464
- https://bugzilla.redhat.com/show_bug.cgi?id=618108
- http://git.kernel.org/?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
- http://lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.html
- http://secunia.com/advisories/43457
Get alerted when CVE-2010-2542 or the next vulnerability affects your stack