Incorrect Conversion between Numeric Types in Python - CVE-2008-1721

 

Incorrect Conversion between Numeric Types in Python - CVE-2008-1721

Published: July 5, 2022 / Updated: June 3, 2025


Vulnerability identifier: #VU110166
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2008-1721
CWE-ID: CWE-681
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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.


Affected software

Python
Gentoo Linux
dev-lang/python

How to mitigate CVE-2008-1721

Install update from vendor's website.

dev-lang/python - update to 2.4.4-r13

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins