USN-235-1: sudo vulnerability

6 January 2006

sudo vulnerability

A security issue affects these releases of Ubuntu and its derivatives:

  • Ubuntu 5.10
  • Ubuntu 5.04
  • Ubuntu 4.10

Software Description


Charles Morris discovered a privilege escalation vulnerability in sudo. On executing Perl scripts with sudo, various environment variables that affect Perl’s library search path were not cleaned properly. If sudo is set up to grant limited sudo execution of Perl scripts to normal users, this could be exploited to run arbitrary commands as the target user.

This security update also filters out environment variables that can be exploited similarly with Python, Ruby, and zsh scripts.

Please note that this does not affect the default Ubuntu installation, or any setup that just grants full root privileges to certain users.

Update instructions

The problem can be corrected by updating your system to the following package versions:

Ubuntu 5.10
Ubuntu 5.04
Ubuntu 4.10

To update your system, please follow these instructions: