Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ruby-Lang | Ruby | >= 2.4.0, <= 2.4.7 |
| Debian | Debian Linux | 8.0 |
| Opensuse | Leap | 15.1 |
| Oracle | Graalvm | 19.3.0.2 |
Related Weaknesses (CWE)
References
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.htmlThird Party Advisory
- https://hackerone.com/reports/327512ExploitPatchThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/11/msg00025.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/12/msg00009.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- https://seclists.org/bugtraq/2019/Dec/31Broken LinkMailing ListThird Party Advisory
- https://seclists.org/bugtraq/2019/Dec/32Broken LinkMailing ListThird Party Advisory
- https://security.gentoo.org/glsa/202003-06Third Party Advisory
- https://www.debian.org/security/2019/dsa-4587Third Party Advisory
- https://www.oracle.com/security-alerts/cpujan2020.htmlPatchThird Party Advisory
- https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-Vendor Advisory
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/Release Notes
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/Release Notes
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/Release Notes
FAQ
What is CVE-2019-16255?
CVE-2019-16255 is a vulnerability with a CVSS score of 8.1 (HIGH). 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. A...
How severe is CVE-2019-16255?
CVE-2019-16255 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-16255?
Check the references section above for vendor advisories and patch information. Affected products include: Ruby-Lang Ruby, Debian Debian Linux, Opensuse Leap, Oracle Graalvm.