<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200803-06">
  <title>SWORD: Shell command injection</title>
  <synopsis>
    Insufficient input checking in SWORD may allow shell command injection.
  </synopsis>
  <product type="ebuild">sword</product>
  <announced>2008-03-03</announced>
  <revised count="01">2008-03-03</revised>
  <bug>210754</bug>
  <access>remote</access>
  <affected>
    <package name="app-text/sword" auto="yes" arch="*">
      <unaffected range="ge">1.5.8-r2</unaffected>
      <vulnerable range="lt">1.5.8-r2</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    SWORD is a library for Bible study software.
    </p>
  </background>
  <description>
    <p>
    Dan Dennison reported that the diatheke.pl script used in SWORD does
    not properly sanitize shell meta-characters in the "range" parameter
    before processing it.
    </p>
  </description>
  <impact type="high">
    <p>
    A remote attacker could provide specially crafted input to a vulnerable
    application, possibly resulting in the remote execution of arbitrary
    shell commands with the privileges of the user running SWORD (generally
    the web server account).
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All SWORD users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=app-text/sword-1.5.8-r2"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0932">CVE-2008-0932</uri>
  </references>
  <metadata tag="requester" timestamp="2008-02-23T19:11:13Z">
    rbu
  </metadata>
  <metadata tag="submitter" timestamp="2008-02-29T12:41:01Z">
    p-y
  </metadata>
  <metadata tag="bugReady" timestamp="2008-02-29T12:41:15Z">
    p-y
  </metadata>
</glsa>
