GLSA-200903-15 : git: Multiple vulnerabilties

This script is Copyright (C) 2009-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200903-15
(git: Multiple vulnerabilties)

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.

See also :

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

Solution :

All git users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=dev-util/git-1.6.0.6'

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 6.2
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: Gentoo Local Security Checks

Nessus Plugin ID: 35813 (gentoo_GLSA-200903-15.nasl)

Bugtraq ID: 32967
33355

CVE ID: CVE-2008-5516
CVE-2008-5517
CVE-2008-5916