Ubuntu 4.10 / 5.04 / 5.10 : sudo vulnerability (USN-235-1)

medium Nessus Plugin ID 20779

Synopsis

The remote Ubuntu host is missing a security-related patch.

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.

Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected sudo package.

Plugin Details

Severity: Medium

ID: 20779

File Name: ubuntu_USN-235-1.nasl

Version: 1.13

Type: local

Agent: unix

Published: 1/21/2006

Updated: 1/19/2021

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.5

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:5.10, p-cpe:/a:canonical:ubuntu_linux:sudo, cpe:/o:canonical:ubuntu_linux:4.10, cpe:/o:canonical:ubuntu_linux:5.04

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Patch Publication Date: 1/5/2006

Reference Information

CVE: CVE-2005-4158

USN: 235-1