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.
http://www.vupen.com/english/advisories/2008/2780
http://www.vupen.com/english/advisories/2008/2146/references
http://www.securityfocus.com/bid/31681
http://www.securityfocus.com/archive/1/494736/100/0/threaded
http://www.securityfocus.com/archive/1/494535/100/0/threaded
http://www.securityfocus.com/archive/1/494532/100/0/threaded
http://support.apple.com/kb/HT3216
http://secunia.com/advisories/32222
http://secunia.com/advisories/31159
http://seclists.org/fulldisclosure/2008/Jul/0312.html
http://lists.apple.com/archives/security-announce/2008/Oct/msg00001.html