Advisory

GHSA-95xq-v4m2-fq3r

Also known as: CVE-2013-4489

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 04:43 UTC
Modified
2024-12-07 05:38 UTC

Affected packages and fixes

gitlab-grit

RubyGems · All systems

Affected

  • introduced 0, fixed 2.6.1 (ecosystem)

Fixed versions

2.6.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences