← Database

CVE-2008-1887

CRITICAL CVSS: 9.3 Published: 2008-04-18 Modified: 2026-06-16

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.

Affected Platforms

Debian Debian LinuxPython PythonCanonical Ubuntu Linux

Weakness Type

CWE-120

References