Live threats

All CVEs / Git-scm

CVE-2010-2542Git-scm Git

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
git-scmgit< 1.7.2.1

Official sources

References

Links published by the sources. Open them with care.