Buffer overflow in Python
CVE-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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 9.3 (High). Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.063, 93.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python
- Canonical Ubuntu Linux — versions 6.06, 7.04, 7.10
- Debian Linux — versions 4.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (mudongliang/LinuxFlaw, oneoy/cve-). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- SUSE-SR:2008:017 (vendor-advisory, Mailing List, Third Party Advisory)
- bugs.python.org/issue2587 (Exploit, Issue Tracking, Vendor Advisory)
- GLSA-200807-01 (vendor-advisory, Third Party Advisory)
- secunia.com/advisories/30872 (Not Applicable, third-party-advisory)
- 20090824 rPSA-2009-0122-1 idle python (mailing-list, Third Party Advisory, VDB Entry)
- secunia.com/advisories/33937 (Not Applicable, third-party-advisory)
- oval:org.mitre.oval:def:8624 (signature, Third Party Advisory, vdb-entry)
- secunia.com/advisories/37471 (Not Applicable, third-party-advisory)
- python-pystringfromstringandsize-bo(41944) (Third Party Advisory, VDB Entry, vdb-entry)
- secunia.com/advisories/31687 (Not Applicable, third-party-advisory)