GLSA-200506-22 : sudo: Arbitrary command execution

This script is Copyright (C) 2005-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200506-22
(sudo: Arbitrary command execution)

The sudoers file is used to define the actions sudo users are
permitted to perform. Charles Morris discovered that a specific layout
of the sudoers file could cause the results of an internal check to be
clobbered, leaving sudo vulnerable to a race condition.

Impact :

Successful exploitation would permit a local sudo user to execute
arbitrary commands as another user.

Workaround :

Reorder the sudoers file using the visudo utility to ensure the
'ALL' pseudo-command precedes other command definitions.

See also :

http://www.sudo.ws/sudo/alerts/path_race.html
http://www.gentoo.org/security/en/glsa/glsa-200506-22.xml

Solution :

All sudo users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=app-admin/sudo-1.6.8_p9'

Risk factor :

Medium

Family: Gentoo Local Security Checks

Nessus Plugin ID: 18549 (gentoo_GLSA-200506-22.nasl)

Bugtraq ID:

CVE ID: