Executive Summary

Summary
Title Portage: Untrusted search path local root vulnerability
Informations
Name GLSA-200810-02 First vendor Publication 2008-10-09
Vendor Gentoo Last vendor Modification 2008-10-09
Severity (Vendor) High Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:L/AC:M/Au:N/C:C/I:C/A:C)
Cvss Base Score 6.9 Attack Range Local
Cvss Impact Score 10 Attack Complexity Medium
Cvss Expoit Score 3.4 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A search path vulnerability in Portage allows local attackers to execute commands with root privileges if emerge is called from untrusted directories.

Background

Portage is Gentoo's package manager which is responsible for installing, compiling and updating all packages on the system through the Gentoo rsync tree.

Description

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

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.

Workaround

Do not run "emerge" from untrusted working directories.

Resolution

All Portage users should upgrade to the latest version:

# cd /root
# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/portage-2.1.4.5"

NOTE: To upgrade to Portage 2.1.4.5 using 2.1.4.4 or prior, you must run emerge from a trusted working directory, such as "/root".

References

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

Availability

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

http://security.gentoo.org/glsa/glsa-200810-02.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200810-02.xml

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 6

OpenVAS Exploits

Date Description
2008-11-01 Name : Gentoo Security Advisory GLSA 200810-02 (portage)
File : nvt/glsa_200810_02.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
50059 Gentoo Linux Portage Multiple ebuild Python Module Search Path Subversion Loc...

Nessus® Vulnerability Scanner

Date Description
2008-10-10 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200810-02.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:36:06
  • Multiple Updates