src/configure.in in Vim 5.0 through 7.1, when used for a build with Python support, does not ensure that the Makefile-conf temporary file has the intended ownership and permissions, which allows local users to execute arbitrary code by modifying this file during a time window, or by creating it ahead of time with permissions that prevent its modification by configure.
lists.apple.com/archives/security-announce/2008/Oct/msg00001.html
seclists.org/fulldisclosure/2008/Jul/0312.html
secunia.com/advisories/31159
secunia.com/advisories/32222
support.apple.com/kb/HT3216
www.securityfocus.com/archive/1/494532/100/0/threaded
www.securityfocus.com/archive/1/494535/100/0/threaded
www.securityfocus.com/archive/1/494736/100/0/threaded
www.securityfocus.com/bid/31681
www.vupen.com/english/advisories/2008/2146/references
www.vupen.com/english/advisories/2008/2780