CVE-2014-9489 gollum and gollum-lib allow remote authenticated users to execute arbitrary code

High 8.8 Published Updated

Remote authenticated users can execute arbitrary code via command injection in gollum wiki libraries when specific strings are present.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2014-9489?

CVE-2014-9489 is a high-severity command injection vulnerability in n/a, published on 17 Oct 2017. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The gollum-grit_adapter Ruby gem dependency in gollum before 3.1.1 and the gollum-lib gem dependency in gollum-lib before 4.0.1 when the string "master" is in any of the wiki documents, allows remote authenticated users to execute arbitrary code via the -O or --open-files-in-pager flags.

Weakness: CWE-284

Which versions are affected by CVE-2014-9489?

4 open source packages ship an affected version, including gollum and gollum-lib. It affects 3 products.

PackageAffectedFixed in
gollum RubyGemsAll versions3.1.1
gollum RubyGemsAll versions3.1.1
gollum-lib RubyGemsAll versions4.0.1
gollum-lib RubyGemsAll versions4.0.1

Products include Gollum Project Gollum, Gollum Project Gollum-Lib, Gollum Project Grit Adapter.

How do I fix CVE-2014-9489?

Upgrade gollum to 3.1.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2014-9489 being exploited?

There is no known exploitation of CVE-2014-9489 in the wild and no public exploit code.

Sources

Also known as GHSA-q97v-764g-r2rp.

Is CVE-2014-9489 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free