Lucene search

K
githubGitHub Advisory DatabaseGHSA-95XQ-V4M2-FQ3R
HistoryMay 17, 2022 - 4:43 a.m.

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

2022-05-1704:43:33
CWE-20
GitHub Advisory Database
github.com
4

6.5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.002 Low

EPSS

Percentile

57.5%

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.

Affected configurations

Vulners
Node
gitlabgitlab-shellRange<2.6.1
CPENameOperatorVersion
gitlab-gritlt2.6.1

6.5 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:S/C:P/I:P/A:P

0.002 Low

EPSS

Percentile

57.5%

Related for GHSA-95XQ-V4M2-FQ3R