[Full-disclosure] [ GLSA 200711-07 ] Python: User-assisted execution of arbitrary code



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200711-07
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: Python: User-assisted execution of arbitrary code
Date: November 07, 2007
Bugs: #192876
ID: 200711-07

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Multiple integer overflow vulnerabilities have been discovered in
Python, possibly resulting in the execution of arbitrary code or a
Denial of Service.

Background
==========

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

Affected packages
=================

-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 dev-lang/python < 2.4.4-r6 *>= 2.3.6-r3
>= 2.4.4-r6

Description
===========

Slythers Bro discovered multiple integer overflows in the imageop
module, one of them in the tovideo() method, in various locations in
files imageop.c, rbgimgmodule.c, and also in other files.

Impact
======

A remote attacker could entice a user to process specially crafted
images with an application using the Python imageop module, resulting
in the execution of arbitrary code with the privileges of the user
running the application, or a Denial of Service. Note that this
vulnerability may or may not be exploitable, depending on the
application using the module.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Python 2.3.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/python-2.3.6-r3"

All Python 2.4.x users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/python-2.4.4-r6"

References
==========

[ 1 ] CVE-2007-4965
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4965

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200711-07.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@xxxxxxxxxx or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2007 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMhXduhJ+ozIKI5gRAu7QAJwLWN/dJhfYHj0cd47/vpLD0CmT0wCgiL7v
CQwkunJwxuLtxFVunazbM90=
=ebkp
-----END PGP SIGNATURE-----

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages

  • [ GLSA 200711-07 ] Python: User-assisted execution of arbitrary code
    ... Title: Python: User-assisted execution of arbitrary code ... Security is a primary focus of Gentoo Linux and ensuring the ...
    (Bugtraq)
  • Re: Official reason for omitting inspect.currentcallable() ?
    ... Python 2.7) ... Callables have a .__call__ method that initiates the execution of an executable. ... Python-coded functions have a __call__ method that knows how to initiate the execution of the attached code object that was compiled from the Python code. ... There have been various proposals and a rejected PEP for accessing 'this function' from within a function. ...
    (comp.lang.python)
  • Re: Should I use "if" or "try" (as a matter of speed)?
    ... I dutifully evangelize on the goodness of Python whenever I talk with fellow developers, but I always hit a snag when it comes to discussing the finer points of the execution model (specifically, exceptions). ... of writing it that I've ever found is to encapsulate the raise statement ...
    (comp.lang.python)
  • Re: Step-by-step exec
    ... capture the exception if one line (or multi-line statement) fails, ... The graph is made of a set of python classes, ... which will not only affect those nodes but stop execution. ...
    (comp.lang.python)
  • Re: Should I use "if" or "try" (as a matter of speed)?
    ... I've been using Python since 1.5.1, ... > such an integral part of the execution model. ... since I could eliminate a bunch of potentially ... > What do I mean by "cheaper"? ...
    (comp.lang.python)