<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201009-08">
  <title>python-updater: Untrusted search path</title>
  <synopsis>
    An untrusted search path vulnerability in python-updater might result in
    the execution of arbitrary code.
  </synopsis>
  <product type="ebuild">python-updater</product>
  <announced>2010-09-21</announced>
  <revised count="01">2010-09-21</revised>
  <bug>288361</bug>
  <access>local</access>
  <affected>
    <package name="app-admin/python-updater" auto="yes" arch="*">
      <unaffected range="ge">0.7-r1</unaffected>
      <vulnerable range="lt">0.7-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    python-updater is a script used to remerge python packages when
    changing Python version.
    </p>
  </background>
  <description>
    <p>
    Robert Buchholz of the Gentoo Security Team reported that
    python-updater includes the current working directory and
    subdirectories in the Python module search path (sys.path) before
    calling "import".
    </p>
  </description>
  <impact type="high">
    <p>
    A local attacker could entice the root user to run "python-updater"
    from a directory containing a specially crafted Python module,
    resulting in the execution of arbitrary code with root privileges.
    </p>
  </impact>
  <workaround>
    <p>
    Do not run "python-updater" from untrusted working directories.
    </p>
  </workaround>
  <resolution>
    <p>
    All python-updater users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=app-admin/python-updater-0.7-r1"</code>
  </resolution>
  <references/>
  <metadata tag="requester" timestamp="2010-03-18T00:20:22Z">
    craig
  </metadata>
  <metadata tag="submitter" timestamp="2010-04-09T16:48:48Z">
    craig
  </metadata>
  <metadata tag="bugReady" timestamp="2010-09-03T20:36:47Z">
    craig
  </metadata>
</glsa>
