Gentoo Logo

Git: Privilege escalation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201401-06 / git
Release Date January 10, 2014
Latest Revision January 10, 2014: 1
Impact high
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
dev-vcs/git < >= All supported architectures

Related bugreports: #335891


A stack-based buffer overflow in Git might allow a local attacker to gain escalated privileges.

2.  Impact Information


Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.


Git contains a stack-based buffer overflow in the is_git_directory function in setup.c.


A local attacker could gain escalated privileges via a specially crafted git repository.

3.  Resolution Information


There is no known workaround at this time.


All Git users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-vcs/git-"

NOTE: This is a legacy GLSA. Updates for all affected architectures are available since September 11, 2010. It is likely that your system is already no longer affected by this issue.

4.  References


Page updated January 10, 2014

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.