CVE-2013-4489 GitLab Grit Gem for Ruby contains a flaw allowing arbitrary commands to be executed

Medium 6.5 Published Updated

Remote authenticated users can execute arbitrary commands via the GitLab code search feature due to a vulnerability in the Grit gem.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-4489?

CVE-2013-4489 is a medium-severity command injection vulnerability in Gitlab Gitlab, published on 17 May 2014. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2013-4489?

2 open source packages ship an affected version, including gitlab-grit. It affects 1 product.

PackageAffectedFixed in
gitlab-grit RubyGemsAll versions2.6.1
gitlab-grit RubyGemsAll versions2.6.1

Products include Gitlab Gitlab.

How do I fix CVE-2013-4489?

Upgrade gitlab-grit to 2.6.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2013-4489 being exploited?

There is no known exploitation of CVE-2013-4489 in the wild and no public exploit code.

All Gitlab Gitlab vulnerabilities

Sources

Also known as GHSA-95xq-v4m2-fq3r.

Is CVE-2013-4489 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free