Description
gitweb/gitweb.perl in gitweb in Git 1.6.x before 1.6.0.6, 1.5.6.x before 1.5.6.6, 1.5.5.x before 1.5.5.6, 1.5.4.x before 1.5.4.7, and other versions after 1.4.3 allows local repository owners to execute arbitrary commands by modifying the diff.external configuration variable and executing a crafted gitweb query.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | git-core | 1:1.4.4.4-4+etch1 | DSA-1708-1 |
Advisories 1
- DSA-1708-1 git-core - remote code execution Debian Security (DSA / DLA) · Mar 9, 2026
References
- git-gitweb-privilege-escalation(47528) vdb-entry
- [oss-security] 20090120 Re: CVE request -- git mailing-list
- 50918 vdb-entry
- 33282 third-party-advisory
- GLSA-200903-15 vendor-advisory
- 34194 third-party-advisory
- 33964 third-party-advisory
- [oss-security] 20090115 CVE request -- git mailing-list
- [linux-kernel] 20081220 [Security] gitweb local privilege escalation (fix) mailing-list
- FEDORA-2008-11650 vendor-advisory
- FEDORA-2008-11653 vendor-advisory
- 4922 third-party-advisory
- [git] 20081220 [Security] gitweb local privilege escalation (fix) mailing-list
- USN-723-1 vendor-advisory