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
- Severity: High (CVSS 2.0 base score 7.5)
- EPSS exploit prediction: 3% (83rd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-787
- Affected product: Git-scm Git
- Published:
- Last modified:
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
- 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
Affected products (1)
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
More vulnerabilities in Git-scm Git
- CVE-2022-41903 — Critical (CVSS 9.8): Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format`…
- CVE-2022-23521 — Critical (CVSS 9.8): Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These…
- CVE-2014-9390 — Critical (CVSS 9.8): Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and…
- CVE-2019-1353 — Critical (CVSS 9.8): An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6,…
- CVE-2018-19486 — Critical (CVSS 9.8): Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of…
- CVE-2018-17456 — Critical (CVSS 9.8): Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x…
All CVEs affecting Git-scm Git →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…