Skip to content

GitLab Grit Gem for Ruby contains a flaw allowing arbitrary commands to be executed

Moderate severity GitHub Reviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Jul 3, 2023

Package

bundler gitlab-grit (RubyGems)

Affected versions

< 2.6.1

Patched versions

2.6.1

Description

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

Published by the National Vulnerability Database May 17, 2014
Published to the GitHub Advisory Database May 17, 2022
Reviewed Jun 9, 2023
Last updated Jul 3, 2023

Severity

Moderate

EPSS score

0.198%
(59th percentile)

Weaknesses

CVE ID

CVE-2013-4489

GHSA ID

GHSA-95xq-v4m2-fq3r

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.