Arbitrary Code Execution Affecting gitlab-grit package, versions < 2.6.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.41% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-GITLABGRIT-20116
  • published3 Nov 2013
  • disclosed3 Nov 2013
  • creditjoernchen

Introduced: 3 Nov 2013

CVE-2013-4489  (opens in a new tab)
CWE-94  (opens in a new tab)

Overview

gitlab-grit is a Ruby library for extracting information from a git repository in an object oriented manner. It is a GitLab fork.

Affected versions of this gem contain a flaw in the app/contexts/search_context.rb script. The code search input box is not properly sanitized, which allows strings to be evaluated by the Bourne shell. This may allow a remote attacker to execute arbitrary commands.

CVSS Base Scores

version 3.1