cgit is prone to a remote command-injection vulnerability because it fails to properly sanitize user-supplied input in the 'syntax-highlighting.sh' script.
Credit:
The information has been provided by Jason A. Donenfeld.
cgit could allow a remote attacker to execute arbitrary commands on the system, caused by improper validation of input by the syntax-highlighting.sh script. By passing specially-crafted arguments to the highlight command, a remote authenticated attacker could exploit this vulnerability to inject and execute arbitrary commands on the system.