Vulnerability database / CVE-2008-1887
CVE-2008-1887
HIGH 9.3 CVSS 2.0 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.
Published 18 Apr 2008
Last modified 16 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-120 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 2.0
HIGH 9.3
AV:N/AC:M/Au:N/C:C/I:C/A:C
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
<= 2.5.2
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:*
= 6.06
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*
= 7.04
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*
= 7.10
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:*
= 8.04
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*
= 4.0
References
http://bugs.python.org/issue2587 · Exploit, Issue Tracking, Vendor Advisory http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html · Mailing List, Third Party Advisory http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html · Mailing List, Third Party Advisory http://secunia.com/advisories/29889 · Not Applicable http://secunia.com/advisories/30872 · Not Applicable http://secunia.com/advisories/31255 · Not Applicable http://secunia.com/advisories/31365 · Not Applicable http://secunia.com/advisories/31518 · Not Applicable http://secunia.com/advisories/31687 · Not Applicable http://secunia.com/advisories/33937 · Not Applicable http://secunia.com/advisories/37471 · Not Applicable http://security.gentoo.org/glsa/glsa-200807-01.xml · Third Party Advisory http://support.apple.com/kb/HT3438 · Third Party Advisory http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122 · Broken Link http://www.debian.org/security/2008/dsa-1551 · Patch, Third Party Advisory http://www.debian.org/security/2008/dsa-1620 · Patch, Third Party Advisory http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900 · Third Party Advisory http://www.securityfocus.com/archive/1/490776 · Exploit, Third Party Advisory, VDB Entry http://www.securityfocus.com/archive/1/506056/100/0/threaded · Third Party Advisory, VDB Entry http://www.securityfocus.com/archive/1/507985/100/0/threaded · Third Party Advisory, VDB Entry http://www.securityfocus.com/bid/28749 · Patch, Third Party Advisory, VDB Entry http://www.ubuntu.com/usn/usn-632-1 · Third Party Advisory http://www.vmware.com/security/advisories/VMSA-2009-0016.html · Third Party Advisory http://www.vupen.com/english/advisories/2009/3316 · Permissions Required https://exchange.xforce.ibmcloud.com/vulnerabilities/41944 · Third Party Advisory, VDB Entry https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407 · Third Party Advisory https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624 · Third Party Advisory
History
25 Nov 2026 20:14 UTC · NVD: first stored (published 18 Apr 2008)