Description
Argument injection vulnerability in syntax-highlighting.sh in cgit 9.0.3 and earlier allows remote authenticated users with permissions to add files to execute arbitrary commands via the --plug-in argument to the highlight command.
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.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cgit | 1.0-1.3 | openSUSE-SU-2024:10137-1 |
Advisories 1
- openSUSE-SU-2024:10137-1 cgit-1.0-1.3 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- https://bugzilla.redhat.com/show_bug.cgi?id=870713
- 51167 third-party-advisory
- 56315 vdb-entry
- http://git.zx2c4.com/cgit/commit/?id=7ea35f9f8ecf61ab42be9947aae1176ab6e089bd
- openSUSE-SU-2012:1461 vendor-advisory
- 50734 third-party-advisory
- openSUSE-SU-2012:1421 vendor-advisory
- [oss-security] 20121027 CVE Request: cgit command injection mailing-list
- [oss-security] 20121028 Re: CVE Request: cgit command injection mailing-list
- cgit-syntaxhighlighting-command-exec(79665) vdb-entry
- 51222 third-party-advisory
- openSUSE-SU-2012:1460 vendor-advisory
- openSUSE-SU-2012:1422 vendor-advisory