<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200904-02">
  <title>GLib: Execution of arbitrary code</title>
  <synopsis>
    Multiple integer overflows might allow for the execution of arbitrary code
    when performing base64 conversion.
  </synopsis>
  <product type="ebuild">glib</product>
  <announced>2009-04-03</announced>
  <revised count="02">2009-04-05</revised>
  <bug>249214</bug>
  <access>remote</access>
  <affected>
    <package name="dev-libs/glib" auto="yes" arch="*">
      <unaffected range="ge">2.18.4-r1</unaffected>
      <unaffected range="rge">2.16.6-r1</unaffected>
      <unaffected range="lt">2</unaffected>
      <vulnerable range="lt">2.18.4-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    The GLib is a library of C routines that is used by a multitude of
    programs.
    </p>
  </background>
  <description>
    <p>
    Diego E. Petteno` reported multiple integer overflows in glib/gbase64.c
    when converting a long string from or to a base64 representation.
    </p>
  </description>
  <impact type="normal">
    <p>
    A remote attacker could entice a user or automated system to perform a
    base64 conversion via an application using GLib, possibly resulting in
    the execution of arbitrary code.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All GLib 2.18 users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-libs/glib-2.18.4-r1"</code>
    <p>
    All GLib 2.16 users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-libs/glib-2.16.6-r1"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4316">CVE-2008-4316</uri>
  </references>
  <metadata tag="requester" timestamp="2009-04-02T12:01:03Z">
    rbu
  </metadata>
  <metadata tag="submitter" timestamp="2009-04-02T12:09:57Z">
    rbu
  </metadata>
  <metadata tag="bugReady" timestamp="2009-04-02T12:10:20Z">
    rbu
  </metadata>
</glsa>
