Input validation error in Python - CVE-2012-2135

 

Input validation error in Python - CVE-2012-2135

Published: August 15, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43725
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-2135
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 #BASIC_IMPACT#.

The utf-16 decoder in Python 3.1 through 3.3 does not update the aligned_end variable after calling the unicode_decode_call_errorhandler function, which allows remote attackers to obtain sensitive information (process memory) or cause a denial of service (memory corruption and crash) via unspecified vectors.


Affected software

Python
Ubuntu
python3.1 (Ubuntu package)
python3.1-minimal (Ubuntu package)
python3.2-minimal (Ubuntu package)
python3.2 (Ubuntu package)

How to mitigate CVE-2012-2135

Install update from vendor's website.

python3.1 (Ubuntu package) - addressed in versions 3.1.2-0ubuntu3.2, 3.1.3-1ubuntu1.2
python3.1-minimal (Ubuntu package) - addressed in versions 3.1.2-0ubuntu3.2, 3.1.3-1ubuntu1.2
python3.2-minimal (Ubuntu package) - addressed in versions 3.2-1ubuntu1.2, 3.2.2-0ubuntu1.1, 3.2.3-0ubuntu3.2, 3.2.3-6ubuntu3.1
python3.2 (Ubuntu package) - addressed in versions 3.2-1ubuntu1.2, 3.2.2-0ubuntu1.1, 3.2.3-0ubuntu3.2, 3.2.3-6ubuntu3.1

External References

Related Security Bulletins