Arbitrary Command Execution Affecting gollum-grit_adapter package, versions <0.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.64% (80th 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-GOLLUMGRITADAPTER-20201
  • published3 Dec 2014
  • disclosed3 Dec 2014
  • creditUnknown

Introduced: 3 Dec 2014

CVE-2014-9489  (opens in a new tab)
CWE-77  (opens in a new tab)

Overview

gollum-grit_adapter is an adapter for Gollum to use Grit at the backend. Affected versions of this gem are vulnerable to arbitrary command execution.

Grit implements its search functionality by shelling out to git grep. In turn, git grep takes a -O or --open-files-in-pages option that will pipe the results of grep to an arbitrary process. By failing to properly sanitize user input search parameters, an attacker can thus perform command execution.

Note that the grep result must find the string master (or whatever is the default branch that gollum uses) in any of the wiki's documents for this to succeed.

CVSS Scores

version 3.1