zlib extension module for python PyString_FromStringAndSize() buffer overflow
| zlib-pystringfromstringandsize-bo (41748) |
Description:
The zlib extension module for python is vulnerable to a buffer overflow, caused by an integer signedness error in the PyString_FromStringAndSize() function. By sending a specially-crafted input stream, an attacker could overflow a buffer and execute arbitrary code on the system with elevated privileges or cause the application to crash.
*CVSS:
| Base Score: | 6.8 |
| Access Vector: | Network |
| Access Complexity: | Medium |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 5.3 |
| Exploitability: | Proof-of-Concept |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Gain Access
Remedy:
Refer to the Python SVN repository for patch, upgrade or suggested workaround information. See References.
For other distributions:
Apply the appropriate update for your system. See References.
References:
- Apple Web site: About the security content of Security Update 2009-001 .
- BugTraq Mailing List, Wed Apr 09 2008 - 16:22:36 CDT: IOActive Security Advisory: Buffer overflow in Python zlib extension module.
- Python SVN repository : projects.
- zlib Web site: zlib Home Site.
- ASA-2009-305: python security update (RHSA-2009-1176)
- BID-28715: Python zlib Module Remote Buffer Overflow Vulnerability
- CVE-2008-1721: 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.
- DSA-1551: python2.4 -- several vulnerabilities
- DSA-1620: python2.5 -- several vulnerabilities
- GLSA-200807-01: Python: Multiple integer overflows
- MDVSA-2008:085: Updated python packages fix arbitrary code execution vulnerability
- RHSA-2009-1176: Moderate: python security update
- RHSA-2009-1177: Moderate: python security update
- SA33937: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
- SECTRACK ID: 1019823: Python zlib Extension Module Signed Integer Overflow May Let Users Execute Arbitrary Code
- USN-632-1: Python vulnerabilities
- VUPEN/ADV-2008-1229: Python Zlib Extension negative Value Buffer Overflow Vulnerability
- VUPEN/ADV-2009-3316: VMware Products Multiple Code Execution and Security Bypass Issues
Platforms Affected:
- Apple Mac OS X 10.4.11
- Apple Mac OS X 10.5.6
- Apple Mac OS X Server 10.4.11
- Apple Mac OS X Server 10.5.6
- Canonical Ubuntu 6.06 LTS
- Canonical Ubuntu 7.04
- Canonical Ubuntu 7.10
- Canonical Ubuntu 8.04 LTS
- Debian Debian Linux 4.0
- Gentoo Linux
- MandrakeSoft Mandrake Linux 2007.1 X86_64
- MandrakeSoft Mandrake Linux 2007.1
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux 2008.1 X86_64
- MandrakeSoft Mandrake Linux 2008.1
- MandrakeSoft Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 3.0
- MandrakeSoft Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft Mandrake Linux Corporate Server 4.0
- MandrakeSoft Mandrake Multi Network Firewall 2.0
- RedHat Enterprise Linux 4 Desktop
- RedHat Enterprise Linux 4 WS
- RedHat Enterprise Linux 4 ES
- RedHat Enterprise Linux 4 AS
- RedHat Enterprise Linux 5
- RedHat Enterprise Linux 5 Client Workstation
- RedHat Enterprise Linux 5 Client
- RedHat Enterprise Linux 5.3.z EUS
- zlib zlib extension module for python 2.5.2
Reported:
Apr 08, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
