CVE-2008-1887

Summary

CVECVE-2008-1887
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2008-04-18 17:05:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionPython 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.

Risk And Classification

Primary CVSS: v2.0 9.3 from [email protected]

AV:N/AC:M/Au:N/C:C/I:C/A:C

Problem Types: CWE-120 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:N/AC:M/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 6.06 All All All
Operating System Canonical Ubuntu Linux 7.04 All All All
Operating System Canonical Ubuntu Linux 7.10 All All All
Operating System Canonical Ubuntu Linux 8.04 All All All
Operating System Debian Debian Linux 4.0 All All All
Application Python Python All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Debian update for python2.5 - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Permissions Required
SUSE Update for Multiple Packages - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Debian update for python - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
[security-announce] SUSE Security Summary Report SUSE-SR:2008:017 af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
Repository / Oval Repository af854a3a-2127-422b-91ae-364da2661108 oval.cisecurity.org Third Party Advisory
Gentoo update for python - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Repository / Oval Repository af854a3a-2127-422b-91ae-364da2661108 oval.cisecurity.org Third Party Advisory
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Third Party Advisory, VDB Entry
VMware ESX and vMA Update for Multiple Packages - Secunia Advisories - Vulnerability Information - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com Third Party Advisory, VDB Entry
Ubuntu update for python - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Third Party Advisory, VDB Entry
SecurityFocus af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Exploit, Third Party Advisory, VDB Entry
Python: Multiple integer overflows — Gentoo Linux Documentation af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
About the security content of Security Update 2009-001 af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
Debian -- Security Information -- DSA-1620-1 python2.5 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Patch, Third Party Advisory
wiki.rpath.com/wiki/Advisories:rPSA-2009-0122 af854a3a-2127-422b-91ae-364da2661108 wiki.rpath.com Broken Link
Support | Micro Focus af854a3a-2127-422b-91ae-364da2661108 www.novell.com Third Party Advisory
Python 'stringobject.c' Multiple Remote Buffer Overflow Vulnerabilities af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com Patch, Third Party Advisory, VDB Entry
APPLE-SA-2009-02-12 Security Update 2009-001 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com Mailing List, Third Party Advisory
Issue 2587: PyString_FromStringAndSize() to be considered unsafe - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org Exploit, Issue Tracking, Vendor Advisory
VMSA-2009-0016.1 af854a3a-2127-422b-91ae-364da2661108 www.vmware.com Third Party Advisory
Apple Mac OS X Security Update Fixes Multiple Vulnerabilities - Secunia Advisories - Vulnerability Information - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Debian -- Security Information -- DSA-1551-1 python2.4 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Patch, Third Party Advisory
SUSE update for python - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
USN-632-1: Python vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report