FreeBSD : xloadimage -- arbitrary command execution when handling compressed files (310d0087-0fde-4929-a41f-96f17c5adffe)

high Nessus Plugin ID 18892

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

Tavis Ormandy discovered that xli and xloadimage attempt to decompress images by piping them through gunzip or similar decompression tools.
Unfortunately, the unsanitized file name is included as part of the command. This is dangerous, as in some situations, such as mailcap processing, an attacker may control the input file name. As a result, an attacker may be able to cause arbitrary command execution.

Solution

Update the affected packages.

See Also

https://bugs.gentoo.org/show_bug.cgi?id=79762

http://www.nessus.org/u?2e58efcc

Plugin Details

Severity: High

ID: 18892

File Name: freebsd_pkg_310d00870fde4929a41f96f17c5adffe.nasl

Version: 1.16

Type: local

Published: 7/13/2005

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:xli, cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:xloadimage

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 6/3/2005

Vulnerability Publication Date: 2/18/2005

Reference Information

CVE: CVE-2005-0638