Ubuntu 4.10 / 5.04 : bzip2 vulnerability (USN-161-1)

Medium Nessus Plugin ID 20567


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


USN-158-1 fixed a command injection vulnerability in the 'zgrep' utility. It was determined that the 'bzgrep' counterpart in the bzip2 package is vulnerable to the same flaw.

bzgrep did not handle shell metacharacters like '|' and '&' properly when they occurred in input file names. This could be exploited to execute arbitrary commands with user privileges if bzgrep was run in an untrusted directory with specially crafted file names.

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.


Update the affected bzip2, libbz2-1.0 and / or libbz2-dev packages.

Plugin Details

Severity: Medium

ID: 20567

File Name: ubuntu_USN-161-1.nasl

Version: $Revision: 1.12 $

Type: local

Agent: unix

Published: 2006/01/15

Modified: 2016/05/27

Dependencies: 12634

Risk Information

Risk Factor: Medium


Base Score: 4.6

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

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:bzip2, p-cpe:/a:canonical:ubuntu_linux:libbz2-1.0, p-cpe:/a:canonical:ubuntu_linux:libbz2-dev, cpe:/o:canonical:ubuntu_linux:4.10, cpe:/o:canonical:ubuntu_linux:5.04

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

Patch Publication Date: 2005/08/04

Reference Information

CVE: CVE-2005-0758

USN: 161-1