CVE-2010-2542 json
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 l…
published 16y ago modified 4mo ago also EUVD-2010-2546
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- git-scm git 1.7.2.1
Is CVE-2010-2542 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2010-2542 updated cvss 3.0
Git: Arbitrary code execution via specially-crafted .git file
-
Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.51% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
lists.opensuse.org
/opensuse-security-announce/2011-02/msg00004.html
vendor-advisory, third-party-advisory
-
secunia.com
/advisories/43457
third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=618108
issue-tracking, third-party-advisory
-
openwall.com
/lists/oss-security/2010/07/22/4
mailing-list, third-party-advisory
-
kernel.org
/pub/software/scm/git/docs/RelNotes-1.7.2.1.txt
broken-link
-
openwall.com
/lists/oss-security/2010/07/22/1
mailing-list, third-party-advisory
-
vupen.com
/english/advisories/2011/0464
vdb-entry, permissions-required
-
securityfocus.com
/bid/41891
vdb-entry, third-party-advisory
- git.kernel.org /?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
Sources
- CVE List CVE-2010-2542
- NVD CVE-2010-2542
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.