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-02-21T05:20:16.029201Z
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.

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