blob: 176027ca4309bbbfe2ce79da9b84c4effe34960d [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200810-02">
<title>Portage: Untrusted search path local root vulnerability</title>
A search path vulnerability in Portage allows local attackers to execute
commands with root privileges if emerge is called from untrusted
<product type="ebuild">portage</product>
<announced>October 09, 2008</announced>
<revised>October 09, 2008: 01</revised>
<package name="sys-apps/portage" auto="yes" arch="*">
<unaffected range="ge"></unaffected>
<vulnerable range="lt"></vulnerable>
Portage is Gentoo's package manager which is responsible for
installing, compiling and updating all packages on the system through
the Gentoo rsync tree.
The Gentoo Security Team discovered that several ebuilds, such as
sys-apps/portage, net-mail/fetchmail or app-editors/leo execute Python
code using "python -c", which includes the current working directory in
Python's module search path. For several ebuild functions, Portage did
not change the working directory from emerge's working directory.
<impact type="high">
A local attacker could place a specially crafted Python module in a
directory (such as /tmp) and entice the root user to run commands such
as "emerge sys-apps/portage" from that directory, resulting in the
execution of arbitrary Python code with root privileges.
Do not run "emerge" from untrusted working directories.
All Portage users should upgrade to the latest version:
# cd /root
# emerge --sync
# emerge --ask --oneshot --verbose &quot;&gt;=sys-apps/portage-;</code>
NOTE: To upgrade to Portage using or prior, you must
run emerge from a trusted working directory, such as "/root".
<uri link="">CVE-2008-4394</uri>
<metadata tag="submitter" timestamp="Wed, 08 Oct 2008 16:50:57 +0000">
<metadata tag="bugReady" timestamp="Wed, 08 Oct 2008 16:58:04 +0000">