CVE-2008-1887 Memory corruption in n/a
Attackers can execute arbitrary code via buffer overflow in Python's string allocation when assertions are disabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2008-1887?
CVE-2008-1887 is a critical memory corruption vulnerability in Canonical Ubuntu Linux, published on 18 Apr 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-120
Which versions are affected by CVE-2008-1887?
It affects 3 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Python Python.
How do I fix CVE-2008-1887?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2008-1887 being exploited?
There is no known exploitation of CVE-2008-1887 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as AZL-109563, GHSA-g8m8-g2vw-f7jw, PSF-2008-3.