{"api_version":"1","generated_at":"2026-04-22T23:30:37+00:00","cve":"CVE-2019-16255","urls":{"html":"https://cve.report/CVE-2019-16255","api":"https://cve.report/api/cve/CVE-2019-16255.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-16255","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-16255"},"summary":{"title":"CVE-2019-16255","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-11-26 18:15:00","updated_at":"2023-04-30 23:15:00"},"problem_types":["CWE-94"],"metrics":[],"references":[{"url":"https://hackerone.com/reports/327512","name":"https://hackerone.com/reports/327512","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"HackerOne","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html","name":"[debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 2330-1] jruby security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://seclists.org/bugtraq/2019/Dec/31","name":"20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update","refsource":"BUGTRAQ","tags":["Mailing List","Third Party Advisory"],"title":"Bugtraq: [SECURITY] [DSA 4587-1] ruby2.3 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/","name":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"Ruby 2.5.7 リリース","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","name":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"CVE-2019-16255: Shell#[]およびShell#testのコード挿入脆弱性","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2019/dsa-4587","name":"DSA-4587","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4587-1 ruby2.3","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://seclists.org/bugtraq/2019/Dec/32","name":"20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update","refsource":"BUGTRAQ","tags":["Mailing List","Third Party Advisory"],"title":"Bugtraq: [SECURITY] [DSA 4586-1] ruby2.5 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html","name":"openSUSE-SU-2020:0395","refsource":"SUSE","tags":["Third Party Advisory"],"title":"[security-announce] openSUSE-SU-2020:0395-1: important: Recommended upda","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html","name":"[debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update","refsource":"MLIST","tags":["Third Party Advisory"],"title":"[SECURITY] [DLA 2027-1] jruby security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html","name":"[debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3408-1] jruby security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","name":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","refsource":"MISC","tags":["Mailing List","Third Party Advisory"],"title":"[SECURITY] [DLA 2007-1] ruby2.1 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/","name":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"Ruby 2.4.8 リリース","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/","name":"https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"Ruby 2.6.5 リリース","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","name":"https://www.oracle.com/security-alerts/cpujan2020.html","refsource":"MISC","tags":["Third Party Advisory"],"title":"Oracle Critical Patch Update Advisory - January 2020","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202003-06","name":"GLSA-202003-06","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"Ruby: Multiple vulnerabilities (GLSA 202003-06) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-16255","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16255","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"9.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"8.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"opensuse","cpe5":"leap","cpe6":"15.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"opensuse","cpe5":"leap","cpe6":"15.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"oracle","cpe5":"graalvm","cpe6":"19.3.0.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"enterprise","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"2.4.7","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"2.5.6","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16255","vulnerable":"1","versionEndIncluding":"2.6.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-16255","qid":"159290","title":"Oracle Enterprise Linux Security Update for ruby:2.5 (ELSA-2021-2587)"},{"cve":"CVE-2019-16255","qid":"159298","title":"Oracle Enterprise Linux Security Update for ruby:2.6 (ELSA-2021-2588)"},{"cve":"CVE-2019-16255","qid":"181757","title":"Debian Security Update for jruby (DLA 3408-1)"},{"cve":"CVE-2019-16255","qid":"239350","title":"Red Hat Update for rh-ruby25-ruby (RHSA-2021:2104)"},{"cve":"CVE-2019-16255","qid":"239368","title":"Red Hat Update for rh-ruby26-ruby (RHSA-2021:2230)"},{"cve":"CVE-2019-16255","qid":"239461","title":"Red Hat Update for ruby:2.6 (RHSA-2021:2588)"},{"cve":"CVE-2019-16255","qid":"239462","title":"Red Hat Update for ruby:2.5 (RHSA-2021:2587)"},{"cve":"CVE-2019-16255","qid":"240156","title":"Red Hat Update for ruby:2.6 (RHSA-2022:0582)"},{"cve":"CVE-2019-16255","qid":"296076","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 19.3.0 Missing (CPUJAN2020)"},{"cve":"CVE-2019-16255","qid":"356305","title":"Amazon Linux Security Advisory for ruby : ALASRUBY2.6-2023-007"},{"cve":"CVE-2019-16255","qid":"357267","title":"Amazon Linux Security Advisory for ruby : ALAS2-2024-2486"},{"cve":"CVE-2019-16255","qid":"500612","title":"Alpine Linux Security Update for ruby"},{"cve":"CVE-2019-16255","qid":"504372","title":"Alpine Linux Security Update for ruby"},{"cve":"CVE-2019-16255","qid":"900069","title":"CBL-Mariner Linux Security Update for ruby 2.6.3"},{"cve":"CVE-2019-16255","qid":"902981","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for ruby (2675)"},{"cve":"CVE-2019-16255","qid":"940189","title":"AlmaLinux Security Update for ruby:2.6 (ALSA-2021:2588)"},{"cve":"CVE-2019-16255","qid":"940401","title":"AlmaLinux Security Update for ruby:2.5 (ALSA-2021:2587)"},{"cve":"CVE-2019-16255","qid":"960022","title":"Rocky Linux Security Update for ruby:2.6 (RLSA-2021:2588)"},{"cve":"CVE-2019-16255","qid":"960064","title":"Rocky Linux Security Update for ruby:2.5 (RLSA-2021:2587)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-16255","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://hackerone.com/reports/327512","refsource":"MISC","name":"https://hackerone.com/reports/327512"},{"refsource":"MISC","name":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html","url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html"},{"refsource":"CONFIRM","name":"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-6-5-released/"},{"refsource":"CONFIRM","name":"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-5-7-released/"},{"refsource":"CONFIRM","name":"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/ruby-2-4-8-released/"},{"refsource":"CONFIRM","name":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/","url":"https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/"},{"refsource":"MLIST","name":"[debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update","url":"https://lists.debian.org/debian-lts-announce/2019/12/msg00009.html"},{"refsource":"BUGTRAQ","name":"20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update","url":"https://seclists.org/bugtraq/2019/Dec/31"},{"refsource":"BUGTRAQ","name":"20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update","url":"https://seclists.org/bugtraq/2019/Dec/32"},{"refsource":"DEBIAN","name":"DSA-4587","url":"https://www.debian.org/security/2019/dsa-4587"},{"url":"https://www.oracle.com/security-alerts/cpujan2020.html","refsource":"MISC","name":"https://www.oracle.com/security-alerts/cpujan2020.html"},{"refsource":"GENTOO","name":"GLSA-202003-06","url":"https://security.gentoo.org/glsa/202003-06"},{"refsource":"SUSE","name":"openSUSE-SU-2020:0395","url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update","url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update","url":"https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html"}]}},"nvd":{"publishedDate":"2019-11-26 18:15:00","lastModifiedDate":"2023-04-30 23:15:00","problem_types":["CWE-94"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.0","versionEndIncluding":"2.6.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","versionStartIncluding":"2.5.0","versionEndIncluding":"2.5.6","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:*","versionStartIncluding":"2.4.0","versionEndIncluding":"2.4.7","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:oracle:graalvm:19.3.0.2:*:*:*:enterprise:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"16255","Ordinal":"155845","Title":"CVE-2019-16255","CVE":"CVE-2019-16255","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"16255","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"16255","Ordinal":"2","NoteData":"2019-11-26","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"16255","Ordinal":"3","NoteData":"2020-08-16","Type":"Other","Title":"Modified"}]}}}