GHSA-95xq-v4m2-fq3r

Suggest an improvement
Source
https://github.com/advisories/GHSA-95xq-v4m2-fq3r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-95xq-v4m2-fq3r/GHSA-95xq-v4m2-fq3r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-95xq-v4m2-fq3r
Aliases
  • CVE-2013-4489
Published
2022-05-17T04:43:33Z
Modified
2024-12-07T05:38:07.538352Z
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.

GitLab 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.

Database specific
{
    "nvd_published_at": "2014-05-17T20:55:00Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-06-09T19:41:13Z"
}
References

Affected packages

RubyGems / gitlab-grit

Package

Name
gitlab-grit
Purl
pkg:gem/gitlab-grit

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.6.1

Affected versions

1.*

1.0.0

2.*

2.5.0
2.5.1
2.5.2
2.6.0