{"id":"CVE-2019-16255","state":"PUBLISHED","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 \"command\" argument) to Shell#[] or Shell#test in lib/shell.rb ","description":"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.","publishedAt":"2019-11-26T00:00:00.000Z","updatedAt":"2024-08-05T01:10:41.667Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://hackerone.com/reports/327512","https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/","https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/","https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/","https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html","https://seclists.org/bugtraq/2019/Dec/31","https://seclists.org/bugtraq/2019/Dec/32","https://www.debian.org/security/2019/dsa-4587","https://www.oracle.com/security-alerts/cpujan2020.html","https://security.gentoo.org/glsa/202003-06","http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:45:36.262Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/16xxx/CVE-2019-16255.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-16255","state":"PUBLISHED","datePublished":"2019-11-26T00:00:00.000Z","dateUpdated":"2024-08-05T01:10:41.667Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2019-09-11T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://hackerone.com/reports/327512"},{"url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/"},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html","name":"[debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update","tags":["mailing-list"]},{"url":"https://seclists.org/bugtraq/2019/Dec/31","name":"20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update","tags":["mailing-list"]},{"url":"https://seclists.org/bugtraq/2019/Dec/32","name":"20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2019/dsa-4587","name":"DSA-4587","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html"},{"url":"https://security.gentoo.org/glsa/202003-06","name":"GLSA-202003-06","tags":["vendor-advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","name":"openSUSE-SU-2020:0395","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","name":"[debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html","name":"[debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update","tags":["mailing-list"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2023-04-30T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/327512","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","tags":["x_transferred"]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/","tags":["x_transferred"]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/","tags":["x_transferred"]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/","tags":["x_transferred"]},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html","name":"[debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update","tags":["mailing-list","x_transferred"]},{"url":"https://seclists.org/bugtraq/2019/Dec/31","name":"20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update","tags":["mailing-list","x_transferred"]},{"url":"https://seclists.org/bugtraq/2019/Dec/32","name":"20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update","tags":["mailing-list","x_transferred"]},{"url":"https://www.debian.org/security/2019/dsa-4587","name":"DSA-4587","tags":["vendor-advisory","x_transferred"]},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","tags":["x_transferred"]},{"url":"https://security.gentoo.org/glsa/202003-06","name":"GLSA-202003-06","tags":["vendor-advisory","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","name":"openSUSE-SU-2020:0395","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","name":"[debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html","name":"[debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update","tags":["mailing-list","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T01:10:41.667Z"}}]}}}