Gentoo Logo

sudo: Privilege escalation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201006-09 / sudo
Release Date June 01, 2010
Latest Revision June 01, 2010: 01
Impact high
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
app-admin/sudo < 1.7.2_p6 >= 1.7.2_p6 All supported architectures

Related bugreports: #321697


A flaw in sudo's -e option may allow local attackers to execute arbitrary commands.

2.  Impact Information


sudo allows a system administrator to give users the ability to run commands as other users.


The command matching functionality does not properly handle when a file in the current working directory has the same name as a pseudo-command in the sudoers file and the PATH contains an entry for ".".


A local attacker with the permission to run sudoedit could, under certain circumstances, execute arbitrary commands as whichever user he has permission to run sudoedit as, typically root.

3.  Resolution Information


There is no known workaround at this time.


All sudo users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-admin/sudo-1.7.2_p6"

4.  References


Page updated June 01, 2010

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.