CVE-2014-9489: Gollum Gollum And Gollum-lib Allow Remote Vulnerability

HIGH
Advisory Identifier: GHSA-q97v-764g-r2rp
CVSS 8.8
CWE-284
Published
Advisory Summary

CVE-2014-9489 is a HIGH (CVSS 8.8) gollum and gollum-lib allow remote vulnerability (CWE-284: Improper Access Control) affecting Gollum libraries in the RubyGems ecosystem. The issue involves gollum and gollum-lib allow remote authenticated users to execute arbitrary code. Remediation is available by upgrading affected packages to version 3.1.1, 4.0.1.

CVE-2014-9489 at a Glance

CVE Identifier CVE-2014-9489
GHSA Identifier GHSA-q97v-764g-r2rp
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-284: Improper Access Control
Affected Product Gollum
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2014-9489

To remediate this vulnerability, upgrade all affected Gollum dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gollum fixed: 3.1.1
Upgrade gollum to 3.1.1
gollum-lib fixed: 4.0.1
Upgrade gollum-lib to 4.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gollum

How to Check if You Are Affected

To determine whether your application is affected by CVE-2014-9489, inspect your project dependencies for Gollum:

inspect dependencies for gollum

Analyze the terminal output to locate any version of Gollum in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Gollum, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2014-9489 Affected Gollum Versions

2 component(s)
Fixed Versions:
3.1.14.0.1
Product / Package Ecosystem Affected Versions Fixed Version
gollum
RubyGems
< 3.1.1
3.1.1
gollum-lib
RubyGems
< 4.0.1
4.0.1

References

Frequently Asked Questions

What is CVE-2014-9489?
CVE-2014-9489 is a security vulnerability in Gollum involving gollum and gollum-lib allow remote authenticated users to execute arbitrary code under CWE-284: Improper Access Control.
Which Gollum versions are affected?
Affected versions include releases prior to 3.1.1, 4.0.1 across affected packages: gollum, gollum-lib.
What version fixes CVE-2014-9489?
Upgrading to 3.1.1, 4.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gollum affected?
Yes, gollum is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
Is gollum-lib affected?
Yes, gollum-lib is affected in releases prior to 4.0.1. Upgrade your dependency to 4.0.1 or later.
What is the CVSS score of CVE-2014-9489?
CVE-2014-9489 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2014-9489?
CVE-2014-9489 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check RubyGems dependencies for CVE-2014-9489?
Run the dependency tree command: 'inspect dependencies for gollum'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q97v-764g-r2rp",
  "modified" : "2023-01-23T21:34:16Z",
  "published" : "2017-11-16T01:47:37Z",
  "aliases" : [ "CVE-2014-9489" ],
  "summary" : "gollum and gollum-lib allow remote authenticated users to execute arbitrary code",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "gollum"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "gollum-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-9489"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gollum/gollum/issues/913"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gollum/gollum"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200229041306/http://www.securityfocus.com/bid/71499"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/01/03/19"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:51:32Z",
    "nvd_published_at" : "2017-10-17T14:29:00Z"
  }
}