GLSA-201203-20 : Logwatch: Arbitrary code execution

critical Nessus Plugin ID 59612

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-201203-20 (Logwatch: Arbitrary code execution)

logwatch.pl does not properly sanitize log filenames against shell metacharacters before passing them to the 'system()' function.
Impact :

A remote attacker could pass a specially crafted log filename to Logwatch, possibly resulting in execution of arbitrary code with root privileges or a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All Logwatch users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-apps/logwatch-7.4.0'

See Also

https://security.gentoo.org/glsa/201203-20

Plugin Details

Severity: Critical

ID: 59612

File Name: gentoo_GLSA-201203-20.nasl

Version: 1.8

Type: local

Published: 6/21/2012

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:logwatch, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/28/2012

Reference Information

CVE: CVE-2011-1018

BID: 46554

GLSA: 201203-20