Due to an oversight on my part, the original email has not been signed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200911-04
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
     Title: dstat: Untrusted search path
      Date: November 25, 2009
      Bugs: #293497
        ID: 200911-04

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

Synopsis
========

An untrusted search path vulnerability in the dstat might result in the
execution of arbitrary code.

Background
==========

dstat is a versatile system resource monitor written in Python.

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

-------------------------------------------------------------------
     Package         /  Vulnerable  /                       Unaffected
    -------------------------------------------------------------------
  1  sys-apps/dstat     < 0.6.9-r1                         >= 0.6.9-r1

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

Robert Buchholz of the Gentoo Security Team reported that dstat
includes the current working directory and subdirectories in the Python
module search path (sys.path) before calling "import".

Impact
======

A local attacker could entice a user to run "dstat" from a directory
containing a specially crafted Python module, resulting in the
execution of arbitrary code with the privileges of the user running the
application.

Workaround
==========

Do not run "dstat" from untrusted working directories.

Resolution
==========

All dstat users should upgrade to the latest version:

# emerge --sync
    # emerge --ask --oneshot --verbose ">=sys-apps/dstat-0.6.9-r1"

References
==========

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

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

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

http://security.gentoo.org/glsa/glsa-200911-04.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 (at) gentoo (dot) org [email concealed] or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2009 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 v2.0.11 (GNU/Linux)

iQIcBAABCgAGBQJLDUnbAAoJECaaHo/OfoM5mwIP/Rd4Iu6lPEBxHZsIuFkkdoBn
KOdTmVGaU57UktP0lzIHd4bp0qKitPE3hxheXH2COWblc7SJqEsKFS1c51Kf8sdw
mWGU2KqAqZbX4bQA2xt62i09eaEIubgaI98NPKnsgGQ8G8pdcXXExI775oL2gpR7
jWsTf5XBfbFWhz4fJWu+xDgNkSqF30nQmq4mdFRDh7ZuqFr1fWwQaovoNLUwg6dP
COGUg4Q5Bks0uS/uWIli5xlfeRdf4e/31VlHWPfxn8/KUxOk8O1s0I2TeG3KjT16
1v2DNFmx9cfsut0suMXPZ8eXAl6+RgQxHmLTc8jKbbbJ0KglO8tjCbEf2AxWDkrh
dPxWOY6R+i9Ty9JrA4Mmztwu2NK+Ah2DwNtC2ipGbjtMbV8MhMUdJ9+uQQVSgwRX
U5J7z8Eyeta87wgpLHa7nWRbO6/GyWrcuHrdrDEcA/eTUuOhimB/RLpwNqa3Wu/U
JZ2qekcPcrtRnxRBTUQAxu4fqPs4wqfz0N4WiLxfP3aRSrX/HqoNHH6G0DLWoaCt
VPtfBWp5hfVklEKOZXyJ/B9UzgwtnPOjJ4/pICdr8XNL8KU+PS81tCDJ1ltUnsXC
5gy4NRfylGAJJjIX53Gto/NBOetnpT15JgcynANQV7zPb2mkDcXfbC0UIZltWRnV
nOmc0lwLXb4ikvLoM+wr
=ISOv
-----END PGP SIGNATURE-----