CVE-2013-4489 GitLab Grit Gem for Ruby contains a flaw allowing arbitrary commands to be executed
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.
| Package | Affected | Fixed in |
|---|---|---|
gitlab-grit RubyGems | All versions | 2.6.1 |
gitlab-grit RubyGems | All versions | 2.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.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as GHSA-95xq-v4m2-fq3r.