CVE-2014-10075 — Vulnerability in karo — CVE Details
CRITICAL
karo Metacharacter Handling Remote Command Execution
Published May 14, 2022Updated August 15, 2025Source: osv
Summary
The karo gem through 2.5.2 for Ruby allows Remote command injection via the host field.
A flaw in `db.rb` is triggered when handling metacharacters. This may allow a remote attacker to execute arbitrary commands.
In particular lines 76 and 95 (as of `2014-06-01`) pass unsanitized user supplied input to the command line.
```
73- host = "{@configuration["user"]}@{@configuration["host"]}"
74- cmd = "ssh #{host} cat {server_db_config_file}"
75-
76: server_db_config_output = `{cmd}`
79-
--
89- def drop_and_create_local_database(local_db_config)
90- command = case local_db_config["adapter"]
91- when "mysql2"
93- when "postgresql"
95- dropdb -h #{local_db_config["host"]} -U #{local_db_config["username"]} --if-exists #{local_db_config["database"]}
```
If this gem is used in the context of a rails application malicious input could lead to remote command injection. As of version 2.5.2 the affected code lines have not changed.
Advisory Timeline
- First published May 14, 2022 (1612 days ago).
- Last revised August 15, 2025 — 1190 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| karo | rubygems | 1.0.0, 1.1.0, 1.2.0, 1.2.1 (+24 more) | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-77
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-10075ADVISORY
- https://github.com/rahult/karoPACKAGE
- https://github.com/rahult/karo/blob/master/lib/karo/db.rb#L76WEB
- https://github.com/rahult/karo/blob/master/lib/karo/db.rb#L95WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/karo/CVE-2014-10075.ymlWEB
- https://www.vapid.dhs.org/advisories/karo-2.3.8.htmlWEB
- https://www.vapidlabs.com/advisory.php?v=63WEB
Frequently Asked Questions
- What is CVE-2014-10075?
- karo Metacharacter Handling Remote Command Execution This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2014-10075?
- CVE-2014-10075 affects karo. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2014-10075 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
9.8
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
GHSA-qfwq-chf4-jvwg
Related CVEs
- CVE-2026-55107CRITICAL
kobako Sandbox Escape: guest eval reaches host RCE via method_missing → public_send (any bound Service)
- CVE-2026-77602CRITICAL
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies