Executive Summary



This Alert is flagged as TOP 25 Common Weakness Enumeration from CWE/SANS. For more information, you can read this.
Summary
Title git: Multiple vulnerabilties
Informations
Name GLSA-200903-15 First vendor Publication 2009-03-09
Vendor Gentoo Last vendor Modification 2009-03-09
Severity (Vendor) High Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

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.

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

Original Source

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

CWE : Common Weakness Enumeration

% Id Name
50 % CWE-264 Permissions, Privileges, and Access Controls
25 % CWE-94 Failure to Control Generation of Code ('Code Injection')
25 % CWE-78 Improper Sanitization of Special Elements used in an OS Command ('OS Command Injection') (CWE/SANS Top 25)

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:12780
 
Oval ID: oval:org.mitre.oval:def:12780
Title: DSA-1708-1 git-core -- shell command injection
Description: It was discovered that gitweb, the web interface for the Git version control system, contained several vulnerabilities: Remote attackers could use crafted requests to execute shell commands on the web server, using the snapshot generation and pickaxe search functionality. Local users with write access to the configuration of a Git repository served by gitweb could cause gitweb to execute arbitrary shell commands with the permission of the web server. For the stable distribution, these problems have been fixed in version 1:1.4.4.4-4+etch1. For the unstable distribution and testing distribution, the remote shell command injection issuei has been fixed in version 1.5.6-1. The other issue will be fixed soon. We recommend that you upgrade your Git packages.
Family: unix Class: patch
Reference(s): DSA-1708-1
CVE-2008-5516
CVE-2008-5517
CVE-2008-5916
Version: 7
Platform(s): Debian GNU/Linux 4.0
Product(s): git-core
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:13916
 
Oval ID: oval:org.mitre.oval:def:13916
Title: USN-723-1 -- git-core vulnerabilities
Description: It was discovered that Git did not properly handle long file paths. If a user were tricked into performing commands on a specially crafted Git repository, an attacker could possibly execute arbitrary code with the privileges of the user invoking the program. It was discovered that the Git web interface did not correctly handle shell metacharacters when processing certain commands. A remote attacker could send specially crafted commands to the Git server and execute arbitrary code with the privileges of the Git web server. This issue only applied to Ubuntu 7.10 and 8.04 LTS. It was discovered that the Git web interface did not properly restrict the diff.external configuration parameter. A local attacker could exploit this issue and execute arbitrary code with the privileges of the Git web server. This issue only applied to Ubuntu 8.04 LTS and 8.10
Family: unix Class: patch
Reference(s): USN-723-1
CVE-2008-3546
CVE-2008-5516
CVE-2008-5517
CVE-2008-5916
Version: 5
Platform(s): Ubuntu 7.10
Ubuntu 8.04
Ubuntu 6.06
Ubuntu 8.10
Product(s): git-core
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:7699
 
Oval ID: oval:org.mitre.oval:def:7699
Title: DSA-1708 git-core -- shell command injection
Description: It was discovered that gitweb, the web interface for the Git version control system, contained several vulnerabilities: Remote attackers could use crafted requests to execute shell commands on the web server, using the snapshot generation and pickaxe search functionality (CVE-2008-5916). Local users with write access to the configuration of a Git repository served by gitweb could cause gitweb to execute arbitrary shell commands with the permission of the web server (CVE-2008-5516, CVE-2008-5517).
Family: unix Class: patch
Reference(s): DSA-1708
CVE-2008-5516
CVE-2008-5517
CVE-2008-5916
Version: 5
Platform(s): Debian GNU/Linux 4.0
Product(s): git-core
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 126
Application 2

ExploitDB Exploits

id Description
2010-02-18 gitWeb v1.5.2 Remote Command Execution

OpenVAS Exploits

Date Description
2009-06-05 Name : Ubuntu USN-707-1 (cupsys)
File : nvt/ubuntu_707_1.nasl
2009-06-05 Name : Ubuntu USN-723-1 (git-core)
File : nvt/ubuntu_723_1.nasl
2009-03-13 Name : Gentoo Security Advisory GLSA 200903-15 (git)
File : nvt/glsa_200903_15.nasl
2009-02-13 Name : Fedora Update for git FEDORA-2008-11650
File : nvt/gb_fedora_2008_11650_git_fc9.nasl
2009-02-13 Name : Fedora Update for git FEDORA-2008-11653
File : nvt/gb_fedora_2008_11653_git_fc8.nasl
2009-01-20 Name : Debian Security Advisory DSA 1708-1 (git-core)
File : nvt/deb_1708_1.nasl
2009-01-20 Name : FreeBSD Ports: git
File : nvt/freebsd_git.nasl
2009-01-20 Name : SuSE Security Summary SUSE-SR:2009:001 (OpenSuSE 11.1)
File : nvt/suse_sr_2009_001.nasl
2009-01-20 Name : SuSE Security Summary SUSE-SR:2009:001 (OpenSuSE 11.0)
File : nvt/suse_sr_2009_001a.nasl
2009-01-20 Name : SuSE Security Summary SUSE-SR:2009:001 (OpenSuSE 10.3)
File : nvt/suse_sr_2009_001b.nasl
0000-00-00 Name : Slackware Advisory SSA:2009-051-02 git
File : nvt/esoft_slk_ssa_2009_051_02.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
53539 GIT gitweb git_search Shell Metacharacter Arbitrary Command Execution

53538 GIT gitweb git_snapshot / git_object Shell Metacharacter Arbitrary Command Ex...

50918 GIT gitweb/gitweb.perl diff.external Configuration Variable Crafted Query Loc...

Nessus® Vulnerability Scanner

Date Description
2011-04-08 Name : The remote web server contains a CGI script that can be abused to execute arb...
File : gitweb_git_search_cmd_exec.nasl - Type : ACT_ATTACK
2010-02-21 Name : The remote web server contains a CGI script that can be abused to execute arb...
File : gitweb_git_object_cmd_exec.nasl - Type : ACT_ATTACK
2009-04-23 Name : The remote Ubuntu host is missing one or more security-related patches.
File : ubuntu_USN-723-1.nasl - Type : ACT_GATHER_INFO
2009-03-10 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200903-15.nasl - Type : ACT_GATHER_INFO
2009-02-23 Name : The remote Slackware host is missing a security update.
File : Slackware_SSA_2009-051-02.nasl - Type : ACT_GATHER_INFO
2009-01-20 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1708.nasl - Type : ACT_GATHER_INFO
2009-01-11 Name : The remote openSUSE host is missing a security update.
File : suse_git-5892.nasl - Type : ACT_GATHER_INFO
2008-12-22 Name : The remote Fedora host is missing a security update.
File : fedora_2008-11650.nasl - Type : ACT_GATHER_INFO
2008-12-22 Name : The remote Fedora host is missing a security update.
File : fedora_2008-11653.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:36:21
  • Multiple Updates