CVE-2008-5517
published 2009-01-13CVE-2008-5517: The web interface in git (gitweb) 1.5.x before 1.5.6 allows remote attackers to execute arbitrary commands via shell metacharacters related to (1) git_snapshot…
PriorityP261high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
11.88%
95.6th percentile
The web interface in git (gitweb) 1.5.x before 1.5.6 allows remote attackers to execute arbitrary commands via shell metacharacters related to (1) git_snapshot and (2) git_object.
Affected
38 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
| git | git | — | — |
Detection & IOCsextracted from sources · hover to see the quote
urlhttp://server/cgi-bin/gitweb.cgi?p=sample.git/.git;a=object;f=program.c;h=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391|`touch$IFS/tmp/file.txt`|;hb=9adaf5b35bb6415497d23f089660567227ea3785↗
- →Monitor HTTP requests to gitweb.cgi where the 'h' or 'hb' parameters contain shell metacharacters such as pipe (|), backtick (`), semicolon (;), or $IFS — these are indicators of blind command injection via git_object(). ↗
- →Alert on gitweb CGI requests with the query parameter 'a=object' or 'a=snapshot' combined with unsanitized special characters in hash parameters (h=, hb=, f=), as these map to the vulnerable git_object() and git_snapshot() functions. ↗
- →The exploit uses $IFS as a space substitute to bypass naive input filtering — detect URL-encoded or literal $IFS in CGI query strings targeting gitweb. ↗
- →The vulnerability is a blind command injection (no output returned); detection should focus on anomalous side-effects such as unexpected process spawning from the web server user, rather than response content. ↗
- →The root cause is unsanitized input passed to Perl's open() with '-|' (pipe open); audit gitweb.cgi for uses of open() that incorporate user-controlled parameters without quoting. ↗
- ·CVE-2008-5517 affects gitweb 1.5.x before 1.5.6 specifically for git_snapshot and git_object; the related CVE-2008-5516 covers git_search in versions before 1.5.5. Both must be patched independently. ↗
- ·The upstream fix applies quote_command() to sanitize all three vulnerable open() call sites (git_snapshot, git_object, git_search); partial patching leaves residual injection vectors. ↗
- ·EPEL/EL-4 packages at git-1.5.4.7 are vulnerable to both CVE-2008-5516 and CVE-2008-5517 despite the version number appearing to predate the stated 'first fixed in' versions — the 'first occurred in' language in upstream commits refers to when the fix landed, not when the bug was introduced. ↗
CVSS provenance
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Git vulnerabilities
vendor_ubuntu·2009-02-18·CVSS 7.5
CVE-2008-5516 [HIGH] Git vulnerabilities
Title: Git vulnerabilities
Summary: Git vulnerabilities
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. (CVE-2008-3546)
It was discovered that the Git web interface (gitweb) 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. (CVE-2008-5516, CVE-2008-5517)
It was discovered that the Git web interface (gitweb) did not properly restrict
the diff.external confi
Red Hat
git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
vendor_redhat·CVSS 7.5
CVE-2008-5517 [HIGH] git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
The web interface in git (gitweb) 1.5.x before 1.5.6 allows remote attackers to execute arbitrary commands via shell metacharacters related to (1) git_snapshot and (2) git_object.
Red Hat
git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
vendor_redhat·CVSS 7.5
CVE-2008-5516 [HIGH] git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
git: gitweb multiple remote command injections (CVE-2008-5516 CVE-2008-5517)
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 git_search.
GHSA
GHSA-9mgx-58pm-mc68: The web interface in git (gitweb) 1
ghsa_unreviewed·2022-05-14
CVE-2008-5517 [HIGH] CWE-94 GHSA-9mgx-58pm-mc68: The web interface in git (gitweb) 1
The web interface in git (gitweb) 1.5.x before 1.5.6 allows remote attackers to execute arbitrary commands via shell metacharacters related to (1) git_snapshot and (2) git_object.
No detection rules found.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512330http://lists.opensuse.org/opensuse-security-announce/2009-01/msg00002.htmlhttp://repo.or.cz/w/git.git?a=commitdiff%3Bh=516381d5http://secunia.com/advisories/33964http://secunia.com/advisories/34194http://wiki.rpath.com/Advisories:rPSA-2009-0005http://www.debian.org/security/2009/dsa-1708http://www.gentoo.org/security/en/glsa/glsa-200903-15.xmlhttp://www.openwall.com/lists/oss-security/2009/01/20/1http://www.openwall.com/lists/oss-security/2009/01/21/7http://www.openwall.com/lists/oss-security/2009/01/23/2http://www.securityfocus.com/archive/1/500008/100/0/threadedhttp://www.securityfocus.com/bid/33215http://www.ubuntu.com/usn/USN-723-1http://www.vupen.com/english/advisories/2009/0175https://bugzilla.redhat.com/show_bug.cgi?id=479715https://issues.rpath.com/browse/RPL-2936http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512330http://lists.opensuse.org/opensuse-security-announce/2009-01/msg00002.htmlhttp://repo.or.cz/w/git.git?a=commitdiff%3Bh=516381d5http://secunia.com/advisories/33964http://secunia.com/advisories/34194http://wiki.rpath.com/Advisories:rPSA-2009-0005http://www.debian.org/security/2009/dsa-1708http://www.gentoo.org/security/en/glsa/glsa-200903-15.xmlhttp://www.openwall.com/lists/oss-security/2009/01/20/1http://www.openwall.com/lists/oss-security/2009/01/21/7http://www.openwall.com/lists/oss-security/2009/01/23/2http://www.securityfocus.com/archive/1/500008/100/0/threadedhttp://www.securityfocus.com/bid/33215http://www.ubuntu.com/usn/USN-723-1http://www.vupen.com/english/advisories/2009/0175https://bugzilla.redhat.com/show_bug.cgi?id=479715https://issues.rpath.com/browse/RPL-2936
2009-01-13
Published