CVE-2010-2542Git-scm Git
High 7.5 No auth needed
Follow: this CVE · Git-scm · Git-scm Git We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 2.0
- 7.5
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Aug 11, 2010
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| git-scm | git | < 1.7.2.1 |
Official sources
References
Links published by the sources. Open them with care.
- git.kernel.org
- lists.opensuse.org Third Party Advisory
- secunia.com Third Party Advisory
- www.kernel.org Broken Link
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- www.vupen.com Permissions Required
- bugzilla.redhat.com Issue Tracking Third Party Advisory