Home / Git-scm / Git / CVE-2010-2542
CVE-2010-2542: is it exploited, and which versions of Git-scm Git are affected and fixed?
CVE-2010-2542 is an out-of-bounds write (memory corruption) vulnerability in Git-scm Git. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: git before 1.7.2.1 (NVD). Fixed in 1.7.2.1 (NVD). Severity: High (7.5, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:50 UTC.
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.
From the CVE record by redhat, last updated August 7, 2024, 02:39 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| git-scm | git | before 1.7.2.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:20 UTC.
How severe is CVE-2010-2542?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2010-2542 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.51% probability of exploitation activity in the next 30 days, percentile 85.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- 43457 third-party-advisory, x_refsource_SECUNIA
- https://bugzilla.redhat.com/show_bug.cgi?id=618108 x_refsource_CONFIRM
- [oss-security] 20100722 Re: CVE request: git mailing-list, x_refsource_MLIST
- http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.7.2.1.txt x_refsource_CONFIRM
- SUSE-SR:2011:004 vendor-advisory, x_refsource_SUSE
- [oss-security] 20100721 CVE request: git mailing-list, x_refsource_MLIST
- ADV-2011-0464 vdb-entry, x_refsource_VUPEN
- 41891 vdb-entry, x_refsource_BID
- http://git.kernel.org/?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- June 30, 2010
- Published
- August 11, 2010, 18:00 UTC
- CVE record updated
- August 7, 2024, 02:39 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:20 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:50 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Git?
- Feb 11, 2022CVE-2022-24975 Git-scm Git: resource exposed to the wrong sphere disputed
- Aug 31, 2021CVE-2021-40330 Git-scm Git: n/a
- Feb 12, 2020CVE-2014-9390 Git-scm Git: improper input validation
- Dec 10, 2019CVE-2019-19604 Git-scm Git: OS command injection
- Nov 23, 2018CVE-2018-19486 Git-scm Git: untrusted Search Path
- Oct 6, 2018CVE-2018-17456 Git-scm Git: argument injection
- May 30, 2018CVE-2018-11235 Debian Linux: path traversal (reading or writing files outside the intended folder)
- May 30, 2018CVE-2018-11233 Canonical Ubuntu Linux: out-of-bounds read
Questions about CVE-2010-2542
Is CVE-2010-2542 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 2.51% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Git-scm Git are affected by CVE-2010-2542?
git before 1.7.2.1, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2010-2542?
1.7.2.1, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2010-2542?
High (7.5, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2010-2542?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.