CVE-2008-1887: Buffer Overflow

Published Apr 18, 2008
·
Updated

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 PyStringFromStringAndSize function, which allocates less memory than expected when assert() is disabled and triggers a buffer overflow.

Affected Software

6 affected components
Python Python<=2.5.2
Canonical Ubuntu Linux=7.04
Canonical Ubuntu Linux=7.10
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=6.06
Debian Debian Linux=4.0

Event History

Apr 18, 2008
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2008-1887?

CVE-2008-1887 is classified as a critical vulnerability due to its potential to allow arbitrary code execution.

2

How do I fix CVE-2008-1887?

To fix CVE-2008-1887, upgrade Python to version 2.5.3 or later, or apply relevant patches provided by your operating system.

3

What systems are affected by CVE-2008-1887?

CVE-2008-1887 affects Python versions up to 2.5.2 and specific Ubuntu and Debian Linux distributions.

4

What are the consequences of exploiting CVE-2008-1887?

Exploiting CVE-2008-1887 can lead to a buffer overflow, potentially allowing attackers to execute arbitrary code on the affected system.

5

Is CVE-2008-1887 still relevant today?

While CVE-2008-1887 primarily affects outdated software, it is still relevant for environments using legacy systems that have not been updated.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203