<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200612-21">
  <title>Ruby: Denial of Service vulnerability</title>
  <synopsis>
    The Ruby cgi.rb CGI library is vulnerable to a Denial of Service attack.
  </synopsis>
  <product type="ebuild">ruby</product>
  <announced>2006-12-20</announced>
  <revised count="01">2006-12-20</revised>
  <bug>157048</bug>
  <access>remote</access>
  <affected>
    <package name="dev-lang/ruby" auto="yes" arch="*">
      <unaffected range="ge">1.8.5_p2</unaffected>
      <vulnerable range="lt">1.8.5_p2</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    Ruby is a dynamic, open source programming language with a focus on
    simplicity and productivity.
    </p>
  </background>
  <description>
    <p>
    The read_multipart function of the CGI library shipped with Ruby
    (cgi.rb) does not properly check boundaries in MIME multipart content.
    This is a different issue than GLSA 200611-12.
    </p>
  </description>
  <impact type="normal">
    <p>
    The vulnerability can be exploited by sending the cgi.rb library a
    crafted HTTP request with multipart MIME encoding that contains a
    malformed MIME boundary specifier. Successful exploitation of the
    vulnerability causes the library to go into an infinite loop.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All Ruby users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-lang/ruby-1.8.5_p2"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6303">CVE-2006-6303</uri>
  </references>
  <metadata tag="submitter" timestamp="2006-12-19T16:20:14Z">
    falco
  </metadata>
  <metadata tag="bugReady" timestamp="2006-12-19T16:20:29Z">
    falco
  </metadata>
</glsa>
