Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to sys.path when the argv[0] argument does not contain a path separator, which might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.
https://bugzilla.redhat.com/show_bug.cgi?id=482814
http://www.vupen.com/english/advisories/2011/0122
http://www.vupen.com/english/advisories/2010/1448
http://www.ubuntu.com/usn/USN-1616-1
http://www.ubuntu.com/usn/USN-1613-2
http://www.ubuntu.com/usn/USN-1613-1
http://www.ubuntu.com/usn/USN-1596-1
http://www.redhat.com/support/errata/RHSA-2011-0027.html
http://www.openwall.com/lists/oss-security/2009/01/30/2
http://www.openwall.com/lists/oss-security/2009/01/28/5
http://www.openwall.com/lists/oss-security/2009/01/26/2
http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg586010.html
http://security.gentoo.org/glsa/glsa-200904-06.xml
http://security.gentoo.org/glsa/glsa-200903-41.xml
http://secunia.com/advisories/51087
http://secunia.com/advisories/51040
http://secunia.com/advisories/51024
http://secunia.com/advisories/50858
http://secunia.com/advisories/42888
http://secunia.com/advisories/40194
http://secunia.com/advisories/34522
http://lists.fedoraproject.org/pipermail/package-announce/2010-June/042751.html