{"id":"CVE-2019-16255","published":"2019-11-26T00:00:00Z","modified":"2024-08-05T01:10:41Z","title":"Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the…","vendor":null,"product":null,"tier":"tail","description":{"text":"Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 allows code injection if the first argument (aka the \"command\" argument) to Shell#[] or Shell#test in lib/shell.rb is untrusted data. An attacker can exploit this to call an arbitrary Ruby method.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04187,"percentile":0.91163,"provenance":"source"},"cwes":[],"references":[{"url":"https://hackerone.com/reports/327512","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","tags":[]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/","tags":[]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/","tags":[]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/","tags":[]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html","tags":["mailing-list"]},{"url":"https://seclists.org/bugtraq/2019/Dec/31","tags":["mailing-list"]},{"url":"https://seclists.org/bugtraq/2019/Dec/32","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2019/dsa-4587","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":[]},{"url":"https://security.gentoo.org/glsa/202003-06","tags":["vendor-advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html","tags":["mailing-list"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":18.23}]},"summary":{"text":"Ruby's Shell library (lib/shell.rb), in Ruby versions through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4, fails to properly handle input passed as the first (\"command\") argument to Shell#[] or Shell#test, allowing code injection. An attacker who can supply that argument with untrusted data can use it to invoke an arbitrary Ruby method.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:27Z"},"euvd":{"id":"EUVD-2019-7061","exploited":false,"provenance":"source"}}