{"id":"CVE-2014-10075","aliases":[],"url":"https://o3.security/vulnerability/CVE-2014-10075","summary":"karo Metacharacter Handling Remote Command Execution","details":"The karo gem through 2.5.2 for Ruby allows Remote command injection via the host field.\n\nA flaw in `db.rb` is triggered when handling metacharacters. This may allow a remote attacker to execute arbitrary commands.\n\nIn particular lines 76 and 95 (as of `2014-06-01`) pass unsanitized user supplied input to the command line. \n\n```\n73-      host = \"{@configuration[\"user\"]}@{@configuration[\"host\"]}\"\n74-      cmd  = \"ssh #{host} cat {server_db_config_file}\"\n75-\n76:      server_db_config_output = `{cmd}`\n79-\n--\n89- def drop_and_create_local_database(local_db_config)\n90-      command = case local_db_config[\"adapter\"]\n91-      when \"mysql2\"\n93-      when \"postgresql\"\n95-          dropdb -h #{local_db_config[\"host\"]} -U #{local_db_config[\"username\"]} --if-exists #{local_db_config[\"database\"]}\n```\n\nIf 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.","published":"2022-05-14T01:49:44Z","modified":"2025-08-15T14:26:31.518025Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"RubyGems","name":"karo","fixedVersion":null}],"fix":null,"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2014-10075"},{"type":"PACKAGE","url":"https://github.com/rahult/karo"},{"type":"WEB","url":"https://github.com/rahult/karo/blob/master/lib/karo/db.rb#L76"},{"type":"WEB","url":"https://github.com/rahult/karo/blob/master/lib/karo/db.rb#L95"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/karo/CVE-2014-10075.yml"},{"type":"WEB","url":"http://www.vapid.dhs.org/advisories/karo-2.3.8.html"},{"type":"WEB","url":"http://www.vapidlabs.com/advisory.php?v=63"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-08-15T14:26:31.518025Z"}}