CVE-2008-1887Python
Critical 9.3 No auth needed
Follow: this CVE · Python · Python We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 2.0
- 9.3
- EPSS
- 6.3% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Apr 18, 2008
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-120
- Vector
AV:N/AC:M/Au:N/C:C/I:C/A:C
What happens
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.
What to do
- Apply the vendor's security update for Python.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | python | ≤ 2.5.2 |
| canonical | ubuntu_linux | 6.06 |
| canonical | ubuntu_linux | 7.04 |
| canonical | ubuntu_linux | 7.10 |
| canonical | ubuntu_linux | 8.04 |
| debian | debian_linux | 4.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.python.org Exploit Issue Tracking Vendor Advisory
- lists.apple.com Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- secunia.com Not Applicable
- security.gentoo.org Third Party Advisory
- support.apple.com Third Party Advisory
- wiki.rpath.com Broken Link
- www.debian.org Patch Third Party Advisory
- www.debian.org Patch Third Party Advisory
- www.novell.com Third Party Advisory
- www.securityfocus.com Exploit Third Party Advisory VDB Entry
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securityfocus.com Third Party Advisory VDB Entry
- www.securityfocus.com Patch Third Party Advisory VDB Entry
- www.ubuntu.com Third Party Advisory
- www.vmware.com Third Party Advisory
- www.vupen.com Permissions Required
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry
- oval.cisecurity.org Third Party Advisory
- oval.cisecurity.org Third Party Advisory