<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200903-15">
  <title>git: Multiple vulnerabilties</title>
  <synopsis>
    Multiple vulnerabilities in gitweb allow for remote execution of arbitrary
    commands.
  </synopsis>
  <product type="ebuild">git</product>
  <announced>2009-03-09</announced>
  <revised count="01">2009-03-09</revised>
  <bug>251343</bug>
  <access>remote</access>
  <affected>
    <package name="dev-util/git" auto="yes" arch="*">
      <unaffected range="ge">1.6.0.6</unaffected>
      <vulnerable range="lt">1.6.0.6</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    GIT - the stupid content tracker, the revision control system used by
    the Linux kernel team.
    </p>
  </background>
  <description>
    <p>
    Multiple vulnerabilities have been reported in gitweb that is part of
    the git package:
    </p>
    <ul>
    <li>
    Shell metacharacters related to git_search are not properly sanitized
    (CVE-2008-5516).
    </li>
    <li>
    Shell metacharacters related to git_snapshot and git_object are not
    properly sanitized (CVE-2008-5517).
    </li>
    <li>
    The diff.external configuration variable as set in a repository can be
    executed by gitweb (CVE-2008-5916).
    </li>
    </ul>
  </description>
  <impact type="high">
    <p>
    A remote unauthenticated attacker can execute arbitrary commands via
    shell metacharacters in a query, remote attackers with write access to
    a git repository configuration can execute arbitrary commands with the
    privileges of the user running gitweb by modifying the diff.external
    configuration variable in the repository and sending a crafted query to
    gitweb.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All git users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=dev-util/git-1.6.0.6"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5516">CVE-2008-5516</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5517">CVE-2008-5517</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5916">CVE-2008-5916</uri>
  </references>
  <metadata tag="requester" timestamp="2009-01-11T18:26:05Z">
    p-y
  </metadata>
  <metadata tag="submitter" timestamp="2009-02-12T18:42:55Z">
    rbu
  </metadata>
  <metadata tag="bugReady" timestamp="2009-02-12T18:43:18Z">
    rbu
  </metadata>
</glsa>
