Gentoo Logo

Logwatch: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201203-20 / Logwatch
Release Date March 28, 2012
Latest Revision March 28, 2012: 1
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
sys-apps/logwatch < 7.4.0 >= 7.4.0 All supported architectures

Related bugreports: #356387


A vulnerability in Logwatch might allow remote attackers to execute arbitrary code.

2.  Impact Information


Logwatch analyzes and reports on system logs.

Description does not properly sanitize log filenames against shell metacharacters before passing them to the "system()" function.


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.

3.  Resolution Information


There is no known workaround at this time.


All Logwatch users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=sys-apps/logwatch-7.4.0"

4.  References


Page updated March 28, 2012

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.