Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 200810-02 ] Portage: Untrusted search path local root vulnerability
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Veteran
Veteran


Joined: 12 May 2004
Posts: 1471

PostPosted: Thu Oct 09, 2008 6:26 pm    Post subject: [ GLSA 200810-02 ] Portage: Untrusted search path local root Reply with quote

Gentoo Linux Security Advisory

Title: Portage: Untrusted search path local root vulnerability (GLSA 200810-02)
Severity: high
Exploitable: local
Date: October 09, 2008
Bug(s): #239560
ID: 200810-02

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.

Affected Packages

Package: sys-apps/portage
Vulnerable: < 2.1.4.5
Unaffected: >= 2.1.4.5
Architectures: All supported architectures


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:
Code:
# 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

CVE-2008-4394
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum