Input validation error in Python - CVE-2006-4980

 

Input validation error in Python - CVE-2006-4980

Published: August 2, 2023 / Updated: June 3, 2025


Vulnerability identifier: #VU110169
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-2006-4980
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

Buffer overflow in the repr function in Python 2.3 through 2.6 before 20060822 allows context-dependent attackers to cause a denial of service and possibly execute arbitrary code via crafted wide character UTF-32/UCS-4 strings to certain scripts.


Affected software

Python
Gentoo Linux
Ubuntu
python2.3 (Ubuntu package)
python2.3-dbg (Ubuntu package)
python2.4-minimal (Ubuntu package)
dev-lang/python

How to mitigate CVE-2006-4980

Install update from vendor's website.

python2.3 (Ubuntu package) - addressed in versions 2.3.5-2ubuntu0.3, 2.3.5-8ubuntu0.2
python2.3-dbg (Ubuntu package) - update to 2.3.5-9ubuntu1.2
python2.4-minimal (Ubuntu package) - addressed in versions 2.4.1-0ubuntu0.2, 2.4.2-1ubuntu0.2, 2.4.3-0ubuntu6
dev-lang/python - update to 2.4.3-r4

External References

Related Security Bulletins