CVE-2008-1887

python: PyString_FromStringAndSize does not check for negative size values

Published Apr 18, 2008 CVSS 2.0 · 9.3 Critical EPSS 6.3% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-1551-1 New python2.4 packages fix several vulnerabilities
Debian DSA Debian DSA DSA-1620-1 New python2.5 packages fix several vulnerabilities
EUVD EUVD EUVD-2008-1887 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.
Ubuntu USN Ubuntu USN USN-632-1 Python vulnerabilities
References
Link Providers
http://bugs.python.org/issue2587 cve-icon cve-icon
http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html cve-icon cve-icon
http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html cve-icon cve-icon
http://secunia.com/advisories/29889 cve-icon cve-icon
http://secunia.com/advisories/30872 cve-icon cve-icon
http://secunia.com/advisories/31255 cve-icon cve-icon
http://secunia.com/advisories/31365 cve-icon cve-icon
http://secunia.com/advisories/31518 cve-icon cve-icon
http://secunia.com/advisories/31687 cve-icon cve-icon
http://secunia.com/advisories/33937 cve-icon cve-icon
http://secunia.com/advisories/37471 cve-icon cve-icon
http://security.gentoo.org/glsa/glsa-200807-01.xml cve-icon cve-icon
http://support.apple.com/kb/HT3438 cve-icon cve-icon
http://wiki.rpath.com/wiki/Advisories:rPSA-2009-0122 cve-icon cve-icon
http://www.debian.org/security/2008/dsa-1551 cve-icon cve-icon
http://www.debian.org/security/2008/dsa-1620 cve-icon cve-icon
http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=InfoDocument-patchbuilder-readme5032900 cve-icon cve-icon
http://www.securityfocus.com/archive/1/490776 cve-icon cve-icon
http://www.securityfocus.com/archive/1/506056/100/0/threaded cve-icon cve-icon
http://www.securityfocus.com/archive/1/507985/100/0/threaded cve-icon cve-icon
http://www.securityfocus.com/bid/28749 cve-icon cve-icon
http://www.ubuntu.com/usn/usn-632-1 cve-icon cve-icon
http://www.vmware.com/security/advisories/VMSA-2009-0016.html cve-icon cve-icon
http://www.vupen.com/english/advisories/2009/3316 cve-icon cve-icon
https://exchange.xforce.ibmcloud.com/vulnerabilities/41944 cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2008-1887 cve-icon
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10407 cve-icon cve-icon
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8624 cve-icon cve-icon
https://www.cve.org/CVERecord?id=CVE-2008-1887 cve-icon
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 7, 2024, 8:40 AM
Reserved
Apr 18, 2008, 12:00 AM
Status
Modified
Published
Apr 18, 2008, 5:05 PM
Modified
Jun 16, 2026, 10:52 PM
Severity
Moderate
Public date
Apr 8, 2008, 12:00 AM