Bug 470915 (CVE-2008-5031) - CVE-2008-5031 python: stringobject, unicodeobject integer overflows
Summary: CVE-2008-5031 python: stringobject, unicodeobject integer overflows
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-5031
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 486114 486329 486330 486351 486352 537915
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-10 20:49 UTC by Jan Lieskovsky
Modified: 2021-02-25 13:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 531760 (view as bug list)
Environment:
Last Closed: 2013-04-04 02:03:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1176 0 normal SHIPPED_LIVE Moderate: python security update 2009-07-27 09:22:50 UTC
Red Hat Product Errata RHSA-2009:1177 0 normal SHIPPED_LIVE Moderate: python security update 2009-07-27 09:35:19 UTC
Red Hat Product Errata RHSA-2009:1178 0 normal SHIPPED_LIVE Moderate: python security update 2009-07-27 09:36:40 UTC

Description Jan Lieskovsky 2008-11-10 20:49:17 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-5031 to
the following vulnerability:

Multiple integer overflows in Python 2.5.2 allow context-dependent
attackers to have an unknown impact via a large integer value in the
tabsize argument to the expandtabs method, as implemented by (1) the
string_expandtabs function in Objects/stringobject.c and (2) the
unicode_expandtabs function in Objects/unicodeobject.c.  NOTE: this
vulnerability reportedly exists because of an incomplete fix for
CVE-2008-2315.

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5031
http://www.openwall.com/lists/oss-security/2008/11/05/2
http://www.openwall.com/lists/oss-security/2008/11/05/3
http://scary.beasts.org/security/CESA-2008-008.html
http://svn.python.org/view/python/trunk/Objects/unicodeobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/unicodeobject.c&p2=/python/trunk/Objects/unicodeobject.c
http://svn.python.org/view/python/trunk/Objects/stringobject.c?rev=61350&view=diff&r1=61350&r2=61349&p1=python/trunk/Objects/stringobject.c&p2=/python/trunk/Objects/stringobject.c

Patch against trunk:
http://svn.python.org/view?rev=61350&view=rev

Patch against release25-maint:
http://svn.python.org/view?rev=61349&view=rev

Reproducer:
http://scary.beasts.org/security/CESA-2008-008.html
(part "Integer overflow in string expandtabs operation")

Comment 1 Jan Lieskovsky 2008-11-10 20:51:00 UTC
Other reproducers demonstrating this flaw:

* string poc:
s = 'AA\t\n\tAAAAAAAA'
len(s.expandtabs(0x7ffffffe))

* unicode poc:
s = u'AA\t\n\tAAAAAAAA'
len(s.expandtabs(0x7ffffffe))

Comment 2 Jan Lieskovsky 2008-11-10 20:52:54 UTC
Affected python versions:  2.2.3 <= x <= 2.5.2

This issue affects all versions of the python package, as shipped with
Red Hat Enterprise Linux 3, 4 and 5.

This issue affects all versions of the python package, as shipped with
Fedora releases of 8, 9 and 10.

Comment 8 errata-xmlrpc 2009-07-27 09:23:23 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2009:1176 https://rhn.redhat.com/errata/RHSA-2009-1176.html

Comment 9 errata-xmlrpc 2009-07-27 09:35:47 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2009:1177 https://rhn.redhat.com/errata/RHSA-2009-1177.html

Comment 10 errata-xmlrpc 2009-07-27 09:37:41 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2009:1178 https://rhn.redhat.com/errata/RHSA-2009-1178.html

Comment 11 Jonathan Steffan 2009-09-07 21:55:54 UTC
To address this issue in the F-10 branch, should I be updating to 2.5.4 which has addressed this CVE?

Comment 13 Vincent Danen 2013-04-04 02:03:26 UTC
Statement:

(none)


Note You need to log in before you can comment on or make changes to this bug.