Live threats

All CVEs / Python

CVE-2008-1887Python

Critical 9.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
pythonpython≤ 2.5.2
canonicalubuntu_linux6.06
canonicalubuntu_linux7.04
canonicalubuntu_linux7.10
canonicalubuntu_linux8.04
debiandebian_linux4.0

Official sources

References

Links published by the sources. Open them with care.