OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[ GLSA 200903-15 ] git: Multiple vulnerabilties

From: Robert Buchholz (rbugentoo.org)
Date: Mon Mar 09 2009 - 08:56:27 CDT


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200903-15
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: git: Multiple vulnerabilties
      Date: March 09, 2009
      Bugs: #251343
        ID: 200903-15

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Multiple vulnerabilities in gitweb allow for remote execution of
arbitrary commands.

Background
==========

GIT - the stupid content tracker, the revision control system used by
the Linux kernel team.

Affected packages
=================

    -------------------------------------------------------------------
     Package / Vulnerable / Unaffected
    -------------------------------------------------------------------
  1 dev-util/git < 1.6.0.6 >= 1.6.0.6

Description
===========

Multiple vulnerabilities have been reported in gitweb that is part of
the git package:

* Shell metacharacters related to git_search are not properly
  sanitized (CVE-2008-5516).

* Shell metacharacters related to git_snapshot and git_object are not
  properly sanitized (CVE-2008-5517).

* The diff.external configuration variable as set in a repository can
  be executed by gitweb (CVE-2008-5916).

Impact
======

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.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All git users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=dev-util/git-1.6.0.6"

References
==========

  [ 1 ] CVE-2008-5516
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5516
  [ 2 ] CVE-2008-5517
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5517
  [ 3 ] CVE-2008-5916
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5916

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200903-15.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
securitygentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2009 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQIcBAABAgAGBQJJtSASAAoJECaaHo/OfoM5ttAP/RQgD1SnKzpD59O07vGN1OZB
2h4CjWbqh3i5DP5Zs4KNzJ94CZ0bx7IPZJUGujWLmDoM4tMnnBXtFShDjgv26uHc
oPbEHz9tuPXtC+nFM5fPfQD/BsPrt0K9zZkIeJQd/NndC9UN/L/qwi/o/Oy1hhRm
Wr0Weajz4Kqf9JWVActA7KXIqMLtkYDTYwk67OUxK+7h9uBSCqdqWSS0drt9zvog
eiCqNfpzqcuuiS+zpu5hmf9rhr3sLA1+mAfqUuVspmEg0shrLgNjtAV2gxG7Z/L2
Z0X9OBamp06AISorJfXHNtyTmaD9OQo+OyQm8GJoD0GhlJWsZt81tlXb4hikzOG6
I7L7Vr2C1w7UziFe/zLqBdkCgZ4Uy5iaJYCz/RvAc7wsVjtL/fCWYyCIUr+gTQg5
gU8xMciVLv417Z5KzMwFOLHGFRvLvXaADKUb/EKLtRzQ9JDUIU5hsxNHidexPh0z
nNFAAKzh+oAlBeC/39e0qFi2fc1YLek39IlH4Furt98BTjFHDOZAlP+nuX50xXzG
qtPYyjp8vjFbkwngJ5/4mzSRqOBmY/FeDTlE9Z3p2fJqceFRWVIJhkt1FEIKxOUd
T044Hm/TrfncBSLwFhTrVeykazFRjY0Qb+xfmNYblvzdLaQ4yrAtndcwLX1i4cVi
FBWUdtBlXoy7B4mHoAuv
=hQ4k
-----END PGP SIGNATURE-----