Vulnerabilities in pkg:gem/gitlab-grit
PACKAGECVE-2013-4489 is a MODERATE gitlab grit gem for ruby vulnerability (CWE-20: Improper Input Validation) affecting Gitlab grit libraries in the RubyGems ecosystem. The issue involves gitlab grit gem for ruby contains a flaw allowing arbitrary commands to be executed. Remediation is available by upgrading affected packages to version 2.6.1.
pkg:gem/gitlab-grit
Vulnerability advisories affecting package pkg:gem/gitlab-grit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-95xq-v4m2-fq3r | CVE-2013-4489 | MODERATE | GitLab Grit Gem for Ruby contains a flaw allowing arbitrary commands to be executed |
CVE-2013-4489 at a Glance
How to Fix CVE-2013-4489
To remediate this vulnerability, upgrade all affected Gitlab grit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade gitlab-grit to 2.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for gitlab-grit
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-4489, inspect your project dependencies for Gitlab grit:
inspect dependencies for gitlab-grit
Analyze the terminal output to locate any version of Gitlab grit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Gitlab grit, 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
CVE-2013-4489 Affected Gitlab grit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gitlab-grit
|
RubyGems |
< 2.6.1
|
2.6.1
|
References
Frequently Asked Questions
What is CVE-2013-4489?
Which Gitlab grit versions are affected?
What version fixes CVE-2013-4489?
Is gitlab-grit affected?
What CWE is associated with CVE-2013-4489?
How can I check RubyGems dependencies for CVE-2013-4489?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-95xq-v4m2-fq3r",
"modified" : "2023-07-03T20:33:17Z",
"published" : "2022-05-17T04:43:33Z",
"aliases" : [ "CVE-2013-4489" ],
"summary" : "GitLab Grit Gem for Ruby contains a flaw allowing arbitrary commands to be executed",
"details" : "The Grit gem for Ruby, as used in GitLab 5.2 before 5.4.1 and 6.x before 6.2.3, allows remote authenticated users to execute arbitrary commands, as demonstrated by the search box for the GitLab code search feature.\n\nGitLab Grit Gem for Ruby contains a flaw in the app/contexts/search_context.rb script. The issue is triggered when input passed via the code search box is not properly sanitized, which allows strings to be evaluated by the shell. This may allow a remote attacker to execute arbitrary commands.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "gitlab-grit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4489"
}, {
"type" : "WEB",
"url" : "https://github.com/gitlabhq/grit/commit/40f33a4f4f5604c2a531a1d86901fd81ac4402c4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gitlabhq/grit"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/gitlab-grit/CVE-2013-4489.yml"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/gitlab-org/gitlab-grit/-/blob/v2.6.1/History.txt?ref_type=tags#L2"
}, {
"type" : "WEB",
"url" : "https://www.gitlab.com/2013/11/04/gitlab-ce-6-2-and-5-4-security-release"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-09T19:41:13Z",
"nvd_published_at" : "2014-05-17T20:55:00Z"
}
}