CVE-2010-2542 Memory corruption in n/a
Local attackers can gain privileges via a stack-based buffer overflow in Git's directory setup function triggered by a malicious .git file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2010-2542?
CVE-2010-2542 is a high-severity memory corruption vulnerability in n/a, published on 11 Aug 2010. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2010-2542?
It affects 1 product.
Products include Git-Scm Git.
How do I fix CVE-2010-2542?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2010-2542 being exploited?
There is no known exploitation of CVE-2010-2542 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DSA-2114-1, GHSA-q648-58gx-r823.