<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201203-20">
  <title>Logwatch: Arbitrary code execution</title>
  <synopsis>A vulnerability in Logwatch might allow remote attackers to execute
    arbitrary code.
  </synopsis>
  <product type="ebuild">Logwatch</product>
  <announced>2012-03-28</announced>
  <revised count="1">2012-03-28</revised>
  <bug>356387</bug>
  <access>remote</access>
  <affected>
    <package name="sys-apps/logwatch" auto="yes" arch="*">
      <unaffected range="ge">7.4.0</unaffected>
      <vulnerable range="lt">7.4.0</vulnerable>
    </package>
  </affected>
  <background>
    <p>Logwatch analyzes and reports on system logs.</p>
  </background>
  <description>
    <p>logwatch.pl does not properly sanitize log filenames against shell
      metacharacters before passing them to the "system()" function. 
    </p>
  </description>
  <impact type="high">
    <p>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.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All Logwatch users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=sys-apps/logwatch-7.4.0"
    </code>
    
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2011-1018">CVE-2011-1018</uri>
  </references>
  <metadata timestamp="2012-03-16T19:51:03Z" tag="requester">ackle</metadata>
  <metadata timestamp="2012-03-28T10:30:33Z" tag="submitter">ackle</metadata>
</glsa>
