Python 2.5.2 and earlier allows context-dependent attackers to execute arbitrary code via multiple vectors that cause a negative size value to be provided to the PyString_FromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407
https://exchange.xforce.ibmcloud.com/vulnerabilities/41944
http://www.vupen.com/english/advisories/2009/3316
http://www.vmware.com/security/advisories/VMSA-2009-0016.html
http://www.ubuntu.com/usn/usn-632-1
http://www.securityfocus.com/bid/28749
http://www.securityfocus.com/archive/1/507985/100/0/threaded
http://www.securityfocus.com/archive/1/506056/100/0/threaded
http://www.debian.org/security/2008/dsa-1620
http://www.debian.org/security/2008/dsa-1551
http://support.apple.com/kb/HT3438
http://security.gentoo.org/glsa/glsa-200807-01.xml
http://secunia.com/advisories/37471
http://secunia.com/advisories/33937
http://secunia.com/advisories/31687
http://secunia.com/advisories/31518
http://secunia.com/advisories/31365
http://secunia.com/advisories/31255
http://secunia.com/advisories/30872
http://secunia.com/advisories/29889
http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html
http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html