<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200506-02">
  <title>Mailutils: SQL Injection</title>
  <synopsis>
    GNU Mailutils is vulnerable to SQL command injection attacks.
  </synopsis>
  <product type="ebuild">mailutils</product>
  <announced>2005-06-06</announced>
  <revised count="01">2005-06-06</revised>
  <bug>94824</bug>
  <access>remote</access>
  <affected>
    <package name="net-mail/mailutils" auto="yes" arch="*">
      <unaffected range="ge">0.6-r1</unaffected>
      <vulnerable range="lt">0.6-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    GNU Mailutils is a collection of mail-related utilities.
    </p>
  </background>
  <description>
    <p>
    When GNU Mailutils is built with the "mysql" or "postgres" USE
    flag, the sql_escape_string function of the authentication module fails
    to properly escape the "\" character, rendering it vulnerable to a SQL
    command injection.
    </p>
  </description>
  <impact type="normal">
    <p>
    A malicious remote user could exploit this vulnerability to inject
    SQL commands to the underlying database.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All GNU Mailutils users should upgrade to the latest available
    version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=net-mail/mailutils-0.6-r1"</code>
  </resolution>
  <references>
    <uri link="https://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1824">CAN-2005-1824</uri>
  </references>
  <metadata tag="requester" timestamp="2005-06-05T13:35:06Z">
    jaervosz
  </metadata>
  <metadata tag="submitter" timestamp="2005-06-05T17:42:35Z">
    DerCorny
  </metadata>
  <metadata tag="bugReady" timestamp="2005-06-06T11:45:10Z">
    koon
  </metadata>
</glsa>
