====================================================================                   Red Hat Security Advisory

Synopsis:          Moderate: python security update
Advisory ID:       RHSA-2011:0492-01
Product:           Red Hat Enterprise Linux
Advisory URL:      https://access.redhat.com/errata/RHSA-2011:0492.html
Issue date:        2011-05-05
CVE Names:         CVE-2009-3720 CVE-2010-3493 CVE-2011-1015 
                   CVE-2011-1521 
====================================================================
1. Summary:

Updated python packages that fix multiple security issues are now available
for Red Hat Enterprise Linux 5.

The Red Hat Security Response Team has rated this update as having moderate
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.

2. Relevant releases/architectures:

RHEL Desktop Workstation (v. 5 client) - i386, x86_64
Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64
Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64

3. Description:

Python is an interpreted, interactive, object-oriented programming
language.

A flaw was found in the Python urllib and urllib2 libraries where they
would not differentiate between different target URLs when handling
automatic redirects. This caused Python applications using these modules to
follow any new URL that they understood, including the "file://" URL type.
This could allow a remote server to force a local Python application to
read a local file instead of the remote one, possibly exposing local files
that were not meant to be exposed. (CVE-2011-1521)

A race condition was found in the way the Python smtpd module handled new
connections. A remote user could use this flaw to cause a Python script
using the smtpd module to terminate. (CVE-2010-3493)

An information disclosure flaw was found in the way the Python
CGIHTTPServer module processed certain HTTP GET requests. A remote attacker
could use a specially-crafted request to obtain the CGI script's source
code. (CVE-2011-1015)

A buffer over-read flaw was found in the way the Python Expat parser
handled malformed UTF-8 sequences when processing XML files. A
specially-crafted XML file could cause Python applications using the Python
Expat parser to crash while parsing the file. (CVE-2009-3720)

This update makes Python use the system Expat library rather than its own
internal copy; therefore, users must have the version of Expat shipped with
RHSA-2009:1625 installed, or a later version, to resolve the CVE-2009-3720
issue.

All Python users should upgrade to these updated packages, which contain
backported patches to correct these issues.

4. Solution:

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

5. Bugs fixed (http://bugzilla.redhat.com/):

531697 - CVE-2009-3720 expat: buffer over-read and crash on XML with malformed UTF-8 sequences
632200 - CVE-2010-3493 Python: SMTP proxy RFC 2821 module DoS (uncaught exception) (Issue #9129)
680094 - CVE-2011-1015 python (CGIHTTPServer): CGI script source code disclosure
690560 - CVE-2011-1521 python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes (Issue #11662)

6. Package List:

Red Hat Enterprise Linux Desktop (v. 5 client):

Source:

i386:
python-2.4.3-44.el5.i386.rpm
python-debuginfo-2.4.3-44.el5.i386.rpm
python-libs-2.4.3-44.el5.i386.rpm
python-tools-2.4.3-44.el5.i386.rpm
tkinter-2.4.3-44.el5.i386.rpm

x86_64:
python-2.4.3-44.el5.x86_64.rpm
python-debuginfo-2.4.3-44.el5.x86_64.rpm
python-libs-2.4.3-44.el5.x86_64.rpm
python-tools-2.4.3-44.el5.x86_64.rpm
tkinter-2.4.3-44.el5.x86_64.rpm

RHEL Desktop Workstation (v. 5 client):

Source:

i386:
python-debuginfo-2.4.3-44.el5.i386.rpm
python-devel-2.4.3-44.el5.i386.rpm

x86_64:
python-debuginfo-2.4.3-44.el5.i386.rpm
python-debuginfo-2.4.3-44.el5.x86_64.rpm
python-devel-2.4.3-44.el5.i386.rpm
python-devel-2.4.3-44.el5.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:

i386:
python-2.4.3-44.el5.i386.rpm
python-debuginfo-2.4.3-44.el5.i386.rpm
python-devel-2.4.3-44.el5.i386.rpm
python-libs-2.4.3-44.el5.i386.rpm
python-tools-2.4.3-44.el5.i386.rpm
tkinter-2.4.3-44.el5.i386.rpm

ia64:
python-2.4.3-44.el5.ia64.rpm
python-debuginfo-2.4.3-44.el5.i386.rpm
python-debuginfo-2.4.3-44.el5.ia64.rpm
python-devel-2.4.3-44.el5.ia64.rpm
python-libs-2.4.3-44.el5.i386.rpm
python-libs-2.4.3-44.el5.ia64.rpm
python-tools-2.4.3-44.el5.ia64.rpm
tkinter-2.4.3-44.el5.ia64.rpm

ppc:
python-2.4.3-44.el5.ppc.rpm
python-debuginfo-2.4.3-44.el5.ppc.rpm
python-debuginfo-2.4.3-44.el5.ppc64.rpm
python-devel-2.4.3-44.el5.ppc.rpm
python-devel-2.4.3-44.el5.ppc64.rpm
python-libs-2.4.3-44.el5.ppc.rpm
python-libs-2.4.3-44.el5.ppc64.rpm
python-tools-2.4.3-44.el5.ppc.rpm
tkinter-2.4.3-44.el5.ppc.rpm

s390x:
python-2.4.3-44.el5.s390x.rpm
python-debuginfo-2.4.3-44.el5.s390.rpm
python-debuginfo-2.4.3-44.el5.s390x.rpm
python-devel-2.4.3-44.el5.s390.rpm
python-devel-2.4.3-44.el5.s390x.rpm
python-libs-2.4.3-44.el5.s390x.rpm
python-tools-2.4.3-44.el5.s390x.rpm
tkinter-2.4.3-44.el5.s390x.rpm

x86_64:
python-2.4.3-44.el5.x86_64.rpm
python-debuginfo-2.4.3-44.el5.i386.rpm
python-debuginfo-2.4.3-44.el5.x86_64.rpm
python-devel-2.4.3-44.el5.i386.rpm
python-devel-2.4.3-44.el5.x86_64.rpm
python-libs-2.4.3-44.el5.x86_64.rpm
python-tools-2.4.3-44.el5.x86_64.rpm
tkinter-2.4.3-44.el5.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://access.redhat.com/security/team/key/#package

7. References:

https://www.redhat.com/security/data/cve/CVE-2009-3720.html
https://www.redhat.com/security/data/cve/CVE-2010-3493.html
https://www.redhat.com/security/data/cve/CVE-2011-1015.html
https://www.redhat.com/security/data/cve/CVE-2011-1521.html
https://access.redhat.com/security/updates/classification/#moderate

8. Contact:

The Red Hat security contact is .  More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2011 Red Hat, Inc.

Red Hat: 2011:0492-01: python: Moderate Advisory

Updated python packages that fix multiple security issues are now available for Red Hat Enterprise Linux 5

Summary

Python is an interpreted, interactive, object-oriented programming language.
A flaw was found in the Python urllib and urllib2 libraries where they would not differentiate between different target URLs when handling automatic redirects. This caused Python applications using these modules to follow any new URL that they understood, including the "file://" URL type. This could allow a remote server to force a local Python application to read a local file instead of the remote one, possibly exposing local files that were not meant to be exposed. (CVE-2011-1521)
A race condition was found in the way the Python smtpd module handled new connections. A remote user could use this flaw to cause a Python script using the smtpd module to terminate. (CVE-2010-3493)
An information disclosure flaw was found in the way the Python CGIHTTPServer module processed certain HTTP GET requests. A remote attacker could use a specially-crafted request to obtain the CGI script's source code. (CVE-2011-1015)
A buffer over-read flaw was found in the way the Python Expat parser handled malformed UTF-8 sequences when processing XML files. A specially-crafted XML file could cause Python applications using the Python Expat parser to crash while parsing the file. (CVE-2009-3720)
This update makes Python use the system Expat library rather than its own internal copy; therefore, users must have the version of Expat shipped with RHSA-2009:1625 installed, or a later version, to resolve the CVE-2009-3720 issue.
All Python users should upgrade to these updated packages, which contain backported patches to correct these issues.



Summary


Solution

Before applying this update, make sure all previously-released errata relevant to your system have been applied.
This update is available via the Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at https://access.redhat.com/kb/docs/DOC-11259

References

https://www.redhat.com/security/data/cve/CVE-2009-3720.html https://www.redhat.com/security/data/cve/CVE-2010-3493.html https://www.redhat.com/security/data/cve/CVE-2011-1015.html https://www.redhat.com/security/data/cve/CVE-2011-1521.html https://access.redhat.com/security/updates/classification/#moderate

Package List

Red Hat Enterprise Linux Desktop (v. 5 client):
Source:
i386: python-2.4.3-44.el5.i386.rpm python-debuginfo-2.4.3-44.el5.i386.rpm python-libs-2.4.3-44.el5.i386.rpm python-tools-2.4.3-44.el5.i386.rpm tkinter-2.4.3-44.el5.i386.rpm
x86_64: python-2.4.3-44.el5.x86_64.rpm python-debuginfo-2.4.3-44.el5.x86_64.rpm python-libs-2.4.3-44.el5.x86_64.rpm python-tools-2.4.3-44.el5.x86_64.rpm tkinter-2.4.3-44.el5.x86_64.rpm
RHEL Desktop Workstation (v. 5 client):
Source:
i386: python-debuginfo-2.4.3-44.el5.i386.rpm python-devel-2.4.3-44.el5.i386.rpm
x86_64: python-debuginfo-2.4.3-44.el5.i386.rpm python-debuginfo-2.4.3-44.el5.x86_64.rpm python-devel-2.4.3-44.el5.i386.rpm python-devel-2.4.3-44.el5.x86_64.rpm
Red Hat Enterprise Linux (v. 5 server):
Source:
i386: python-2.4.3-44.el5.i386.rpm python-debuginfo-2.4.3-44.el5.i386.rpm python-devel-2.4.3-44.el5.i386.rpm python-libs-2.4.3-44.el5.i386.rpm python-tools-2.4.3-44.el5.i386.rpm tkinter-2.4.3-44.el5.i386.rpm
ia64: python-2.4.3-44.el5.ia64.rpm python-debuginfo-2.4.3-44.el5.i386.rpm python-debuginfo-2.4.3-44.el5.ia64.rpm python-devel-2.4.3-44.el5.ia64.rpm python-libs-2.4.3-44.el5.i386.rpm python-libs-2.4.3-44.el5.ia64.rpm python-tools-2.4.3-44.el5.ia64.rpm tkinter-2.4.3-44.el5.ia64.rpm
ppc: python-2.4.3-44.el5.ppc.rpm python-debuginfo-2.4.3-44.el5.ppc.rpm python-debuginfo-2.4.3-44.el5.ppc64.rpm python-devel-2.4.3-44.el5.ppc.rpm python-devel-2.4.3-44.el5.ppc64.rpm python-libs-2.4.3-44.el5.ppc.rpm python-libs-2.4.3-44.el5.ppc64.rpm python-tools-2.4.3-44.el5.ppc.rpm tkinter-2.4.3-44.el5.ppc.rpm
s390x: python-2.4.3-44.el5.s390x.rpm python-debuginfo-2.4.3-44.el5.s390.rpm python-debuginfo-2.4.3-44.el5.s390x.rpm python-devel-2.4.3-44.el5.s390.rpm python-devel-2.4.3-44.el5.s390x.rpm python-libs-2.4.3-44.el5.s390x.rpm python-tools-2.4.3-44.el5.s390x.rpm tkinter-2.4.3-44.el5.s390x.rpm
x86_64: python-2.4.3-44.el5.x86_64.rpm python-debuginfo-2.4.3-44.el5.i386.rpm python-debuginfo-2.4.3-44.el5.x86_64.rpm python-devel-2.4.3-44.el5.i386.rpm python-devel-2.4.3-44.el5.x86_64.rpm python-libs-2.4.3-44.el5.x86_64.rpm python-tools-2.4.3-44.el5.x86_64.rpm tkinter-2.4.3-44.el5.x86_64.rpm
These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from https://access.redhat.com/security/team/key/#package


Severity
Advisory ID: RHSA-2011:0492-01
Product: Red Hat Enterprise Linux
Advisory URL: https://access.redhat.com/errata/RHSA-2011:0492.html
Issued Date: : 2011-05-05
CVE Names: CVE-2009-3720 CVE-2010-3493 CVE-2011-1015 CVE-2011-1521

Topic

Updated python packages that fix multiple security issues are now availablefor Red Hat Enterprise Linux 5.The Red Hat Security Response Team has rated this update as having moderatesecurity impact. Common Vulnerability Scoring System (CVSS) base scores,which give detailed severity ratings, are available for each vulnerabilityfrom the CVE links in the References section.


Topic


 

Relevant Releases Architectures

RHEL Desktop Workstation (v. 5 client) - i386, x86_64

Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64

Red Hat Enterprise Linux Desktop (v. 5 client) - i386, x86_64


Bugs Fixed

531697 - CVE-2009-3720 expat: buffer over-read and crash on XML with malformed UTF-8 sequences

632200 - CVE-2010-3493 Python: SMTP proxy RFC 2821 module DoS (uncaught exception) (Issue #9129)

680094 - CVE-2011-1015 python (CGIHTTPServer): CGI script source code disclosure

690560 - CVE-2011-1521 python (urllib, urllib2): Improper management of ftp:// and file:// URL schemes (Issue #11662)


Related News