GHSA-95xq-v4m2-fq3r

    Dashboard / Vulnerabilities / GHSA-95xq-v4m2-fq3r

    GHSA-95xq-v4m2-fq3r

    Published: 17 May 2022Last Modified: 7 Dec 2024
    Aliases:

    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.

    Affected packages

    Package

    Name: gitlab-grit

    Purl: pkg:gem/gitlab-grit

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2.6.1

    Affected versions

    1.0.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-95xq-v4m2-fq3r | CVE-DB