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 val…
CVE-2008-1887 affects 22 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
22 of 250 listed versions are affected. No fixed release is named. The newest release, 3.15.2, is not affected.
2.5.2 2.5.1 2.5.0 2.4.6 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.3 2.2.2 2.2.1 2.2 2.1.3 2.1.2
What it is
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.
AV:N/AC:M/Au:N/C:C/I:C/A:C (NVD)
Published by MITRE on 18 April 2008. Last changed 16 June 2026.
Sources
Check one version you run: look CVE-2008-1887 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.