The Grit gem for Ruby as used in GitLab 5.2 before 5.4.1 and 6.x before 6.2.3 allows remote authenticated users to execute arbitrary commands as demonstrated by the search box for the GitLab code search feature.