CVE-2019-16255Ruby-lang Ruby
High 8.1 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Nov 26, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | ≥ 2.4.0 ≤ 2.4.7 |
| ruby-lang | ruby | ≥ 2.5.0 ≤ 2.5.6 |
| ruby-lang | ruby | ≥ 2.6.0 ≤ 2.6.4 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| opensuse | leap | 15.1 |
| oracle | graalvm | 19.3.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Third Party Advisory
- hackerone.com Exploit Patch Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org
- seclists.org Broken Link Mailing List Third Party Advisory
- seclists.org Broken Link Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.ruby-lang.org Vendor Advisory
- www.ruby-lang.org Release Notes
- www.ruby-lang.org Release Notes
- www.ruby-lang.org Release Notes