GIT gitweb git_snapshot / git_object Shell Metacharacter Arbitrary Command Execution

high Nessus Plugin ID 44675
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote web server contains a CGI script that can be abused to execute arbitrary commands.

Description

The version of gitweb, a web-enabled interface to the open source distributed version control system Git, hosted on the remote web server fails to sanitize user-supplied input to the 'gitweb.cgi' script of shell metacharacters before passing it to a shell.

An unauthenticated, remote attacker can leverage this issue to execute arbitrary commands subject to the privileges under which the web server operates.

Solution

Upgrade to GIT 1.5.6 or later.

See Also

http://www.nessus.org/u?fef3b12d

http://git.kernel.org/?p=git/git.git;a=shortlog;h=refs/tags/v1.5.6

Plugin Details

Severity: High

ID: 44675

File Name: gitweb_git_object_cmd_exec.nasl

Version: 1.12

Type: remote

Family: CGI abuses

Published: 2/21/2010

Updated: 1/19/2021

Dependencies: http_version.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: E:F/RL:OF/RC:ND

Vulnerability Information

CPE: cpe:/a:git:git

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Patch Publication Date: 6/17/2008

Vulnerability Publication Date: 6/17/2008

Reference Information

CVE: CVE-2008-5517

BID: 33215

EDB-ID: 11497

CWE: 94