Vulnerabilities · 2019 · Ruby-lang
CVE-2019-16255
Ruby-lang Ruby vulnerability
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 products
Ruby, Debian Linux, Leap, Graalvm. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/ · Vendor Advisory
- hackerone.com/reports/327512 · Exploit
- www.oracle.com/security-alerts/cpujan2020.html · Patch
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2019/11/msg00025.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2019/12/msg00009.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/08/msg00027.html · Third Party Advisory
- seclists.org/bugtraq/2019/Dec/31 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2019-16255
- cve.org/CVERecord?id=CVE-2019-16255
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.