portage-ng / portage / sys-apps / dstat / 0.7.4-r4
portage-ng glsa
1 advisory reference sys-apps/dstat · none place version 0.7.4-r4 in a vulnerable range
▸ GLSA 200911-04 dstat: Untrusted search path this version unaffected normal local 2009-11-25

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

Announced
2009-11-25
Revised
2009-11-25
Access
local
Bugs
#293497
Advisory
https://security.gentoo.org/glsa/200911-04

Affected packages

PackageArchVulnerableUnaffected
sys-apps/dstat*< 0.6.9-r1>= 0.6.9-r1

Background

dstat is a versatile system resource monitor written in Python.

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