GSD-2014-9489
Vulnerability from gsd - Updated: 2014-12-04 00:00{
"GSD": {
"alias": "CVE-2014-9489",
"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.",
"id": "GSD-2014-9489"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "gollum-grit_adapter",
"purl": "pkg:gem/gollum-grit_adapter"
}
}
],
"aliases": [
"CVE-2014-9489"
],
"details": "The gollum-grit_adapter gem contains a flaw that can allow arbitrary\ncommand execution.\n\nGrit implements its search functionality by shelling out to `git grep`. In\nturn, `git grep` takes a `-O` or `--open-files-in-pages` option that will\npipe the results of `grep` to an arbitrary process. By failing to properly\nsanitize user input search parameters, an attacker can thus perform command\nexecution.\n\nNote that the grep result must find the string \u0027master\u0027 (or\nwhatever is the default branch that gollum uses) in any of the wiki\u0027s\ndocuments for this to succeed.\n",
"id": "GSD-2014-9489",
"modified": "2014-12-04T00:00:00.000Z",
"published": "2014-12-04T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/gollum/gollum/issues/913"
}
],
"schema_version": "1.4.0",
"summary": "gollum-grit_adapter Search Functionality Allows Arbitrary Command\nExecution\n"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2014-9489",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "n/a",
"version": {
"version_data": [
{
"version_value": "n/a"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "n/a"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "[oss-security] 20150103 Re: Re: CVE request: remote code execution vulnerability in gollum \u003c 3.1.1",
"refsource": "MLIST",
"url": "http://www.openwall.com/lists/oss-security/2015/01/03/19"
},
{
"name": "71499",
"refsource": "BID",
"url": "http://www.securityfocus.com/bid/71499"
},
{
"name": "https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7",
"refsource": "CONFIRM",
"url": "https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7"
},
{
"name": "https://github.com/gollum/gollum/issues/913",
"refsource": "CONFIRM",
"url": "https://github.com/gollum/gollum/issues/913"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2014-9489",
"date": "2014-12-04",
"description": "The gollum-grit_adapter gem contains a flaw that can allow arbitrary\ncommand execution.\n\nGrit implements its search functionality by shelling out to `git grep`. In\nturn, `git grep` takes a `-O` or `--open-files-in-pages` option that will\npipe the results of `grep` to an arbitrary process. By failing to properly\nsanitize user input search parameters, an attacker can thus perform command\nexecution.\n\nNote that the grep result must find the string \u0027master\u0027 (or\nwhatever is the default branch that gollum uses) in any of the wiki\u0027s\ndocuments for this to succeed.\n",
"gem": "gollum-grit_adapter",
"patched_versions": [
"\u003e= 0.1.1"
],
"title": "gollum-grit_adapter Search Functionality Allows Arbitrary Command\nExecution\n",
"url": "https://github.com/gollum/gollum/issues/913"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c0.1.1",
"affected_versions": "All versions before 0.1.1",
"credit": "Dawa Ometto\r\n",
"cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-284",
"CWE-937"
],
"date": "2017-11-08",
"description": "In vulnerable versions of the gem, searching for the string `-O\u003carbitrary command\u003e` or `--open-files-in-pager \u003carbritary command\u003e` in the wiki\u0027s search field will execute an arbitrary shell command. However, this will only work if the string \"master\" (or more precisely, the name of the git branch that gollum is using) is found in one of the wiki\u0027s files: \"master\" is then interpreted as the search query, `-O\u003carbitary code\u003e` as a command line option to `git grep`.",
"fixed_versions": [
"0.1.1"
],
"identifier": "CVE-2014-9489",
"identifiers": [
"CVE-2014-9489"
],
"not_impacted": "All versions starting from 0.1.1",
"package_slug": "gem/gollum-grit_adapter",
"pubdate": "2017-10-17",
"solution": "Upgrade to version 0.1.1 or above.",
"title": "Remote Code Execution",
"urls": [
"https://github.com/gollum/gollum/issues/913",
"https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7"
],
"uuid": "57fae773-f9b8-45dd-94a0-f59c019d8561"
},
{
"affected_range": "\u003c4.0.1",
"affected_versions": "All versions before 4.0.1",
"cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-284",
"CWE-78",
"CWE-937"
],
"date": "2021-09-16",
"description": "The gollum-grit_adapter Ruby gem dependency in gollum and the gollum-lib gem dependency in gollum-lib 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.",
"fixed_versions": [
"4.0.1"
],
"identifier": "CVE-2014-9489",
"identifiers": [
"GHSA-q97v-764g-r2rp",
"CVE-2014-9489"
],
"not_impacted": "All versions starting from 4.0.1",
"package_slug": "gem/gollum-lib",
"pubdate": "2017-11-16",
"solution": "Upgrade to version 4.0.1 or above.",
"title": "Improper Access Control",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2014-9489",
"https://github.com/gollum/gollum/issues/913",
"https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7",
"https://github.com/advisories/GHSA-q97v-764g-r2rp",
"http://www.openwall.com/lists/oss-security/2015/01/03/19",
"http://www.securityfocus.com/bid/71499"
],
"uuid": "6e8e94e3-cab7-4ce3-8630-028885fbc74f"
},
{
"affected_range": "\u003c3.1.1",
"affected_versions": "All versions before 3.1.1",
"cvss_v2": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-284",
"CWE-78",
"CWE-937"
],
"date": "2021-09-16",
"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.",
"fixed_versions": [
"3.1.1"
],
"identifier": "CVE-2014-9489",
"identifiers": [
"GHSA-q97v-764g-r2rp",
"CVE-2014-9489"
],
"not_impacted": "All versions starting from 3.1.1",
"package_slug": "gem/gollum",
"pubdate": "2017-11-16",
"solution": "Upgrade to version 3.1.1 or above.",
"title": "Improper Access Control",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2014-9489",
"https://github.com/gollum/gollum/issues/913",
"https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7",
"https://github.com/advisories/GHSA-q97v-764g-r2rp",
"http://www.openwall.com/lists/oss-security/2015/01/03/19",
"http://www.securityfocus.com/bid/71499"
],
"uuid": "9bba8de0-ef8f-4656-8aa9-c7ab773d3a84"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:gollum_project:grit_adapter:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "0.1.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:gollum_project:gollum-lib:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "4.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:gollum_project:gollum:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "3.1.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "cve@mitre.org",
"ID": "CVE-2014-9489"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-284"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7",
"refsource": "CONFIRM",
"tags": [
"Issue Tracking",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/gollum/grit_adapter/commit/4520d973c81fecfebbeacd2ef2f1849d763951c7"
},
{
"name": "https://github.com/gollum/gollum/issues/913",
"refsource": "CONFIRM",
"tags": [
"Issue Tracking",
"Third Party Advisory"
],
"url": "https://github.com/gollum/gollum/issues/913"
},
{
"name": "71499",
"refsource": "BID",
"tags": [
"Third Party Advisory",
"VDB Entry"
],
"url": "http://www.securityfocus.com/bid/71499"
},
{
"name": "[oss-security] 20150103 Re: Re: CVE request: remote code execution vulnerability in gollum \u003c 3.1.1",
"refsource": "MLIST",
"tags": [
"Issue Tracking",
"Mailing List",
"Patch",
"Third Party Advisory"
],
"url": "http://www.openwall.com/lists/oss-security/2015/01/03/19"
}
]
}
},
"impact": {
"baseMetricV2": {
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "SINGLE",
"availabilityImpact": "PARTIAL",
"baseScore": 6.5,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:S/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 8.0,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "MEDIUM",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.0"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
},
"lastModifiedDate": "2017-11-08T16:20Z",
"publishedDate": "2017-10-17T14:29Z"
}
}
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.