CVE-2008-5516: OS Command Injection
Sebastian Krahmer of the SuSE security team discovered a remote command injection flaws in the gitweb, caused by an insufficient checking of the inputs used to build argument to perl's open() function. Remote attacker could use these flaws to run arbitrary commands with the privileges of the web server executing gitweb CGI scripts.
Issues are already fixed upstream in the latest git branches. It seems that the security consequences were not noticed when fixes were applied upstream, as multiple occurrences of the similar flaws were fixed in different upstream versions:
CVE-2008-5517 http://repo.or.cz/w/git.git?a=commitdiff;h=516381d5 (fixes issues in gitsnapshot and gitobject, first occurred in 1.5.6)
CVE-2008-5516 http://repo.or.cz/w/git.git?a=commitdiff;h=c582abae (fixes issue in gitsearch, first occurred in 1.5.5)
All current Fedora packages use version 1.5.6+, so neither of the issue apply to them. EPEL versions should be affected by one or both of the issues.
Other sources
The web interface in git (gitweb) 1.5.x before 1.5.5 allows remote attackers to execute arbitrary commands via shell metacharacters related to gitsearch.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2008-5516?
CVE-2008-5516 has a moderate severity rating due to its ability to allow remote command execution.
How do I fix CVE-2008-5516?
To fix CVE-2008-5516, upgrade to versions of git and gitweb that are 1.5.5 or above to eliminate the vulnerability.
What versions of Git are affected by CVE-2008-5516?
CVE-2008-5516 affects Git versions from 1.5.0 to 1.5.4, including pre-release versions.
What type of attack does CVE-2008-5516 allow?
CVE-2008-5516 allows attackers to perform remote command execution via shell metacharacters.
Is there a known exploit for CVE-2008-5516?
There are known exploitation techniques for CVE-2008-5516 that can lead to unauthorized command execution.