Stack-based buffer overflow in the (1) diff_addremove and (2) diff_change functions in GIT before 1.5.6.4 might allow local users to execute arbitrary code via a PATH whose length is larger than the system's PATH_MAX when running GIT utilities such as git-diff or git-grep.
https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00729.html
https://issues.rpath.com/browse/RPL-2707
https://exchange.xforce.ibmcloud.com/vulnerabilities/44217
http://www.vupen.com/english/advisories/2008/2306
http://www.ubuntu.com/usn/USN-723-1
http://www.securitytracker.com/id?1020627
http://www.securityfocus.com/bid/30549
http://www.securityfocus.com/archive/1/495391/100/0/threaded
http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.5.6.4.txt
http://www.debian.org/security/2008/dsa-1637
http://wiki.rpath.com/Advisories:rPSA-2008-0253
http://security.gentoo.org/glsa/glsa-200809-16.xml
http://secunia.com/advisories/33964
http://secunia.com/advisories/32384
http://secunia.com/advisories/32029