CVE Vulnerabilities

CVE-2008-1721

Incorrect Conversion between Numeric Types

Published: Apr 10, 2008 | Modified: Apr 09, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Integer signedness error in the zlib extension module in Python 2.5.2 and earlier allows remote attackers to execute arbitrary code via a negative signed integer, which triggers insufficient memory allocation and a buffer overflow.

Weakness

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

NameVendorStart VersionEnd Version
PythonPython2.4.0 (including)2.4.6 (excluding)
PythonPython2.5.0 (including)2.5.2 (including)
Red Hat Enterprise Linux 4RedHatpython-0:2.3.4-14.7.el4_8.2*
Red Hat Enterprise Linux 5RedHatpython-0:2.4.3-24.el5_3.6*
Python2.4Ubuntudapper*
Python2.4Ubuntuedgy*
Python2.4Ubuntufeisty*
Python2.4Ubuntugutsy*
Python2.5Ubuntuedgy*
Python2.5Ubuntufeisty*
Python2.5Ubuntugutsy*

Potential Mitigations

References