gollum-grit_adapter Search Functionality Allows Arbitrary Command Execution

Metadata

medium
6.5
gollum-grit_adapter
CVE-2014-9489
github.com
2014-12-04
2017-11-08 18:37
2017-10-17 17:37
2017-04-01 19:10
2017-01-05 20:14

Description

The gollum-grit_adapter gem contains a flaw that can allow 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.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
gollum-grit_adapter >= 0.1.1 None