| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-2007-1, DLA-2027-1, DLA-2330-1, DLA-3408-1, DSA-4586-1, DSA-4587-1 |
| Debian Bugs | 972230 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| jruby (PTS) | bookworm | 9.3.9.0+ds-8 | fixed |
| forky, sid, trixie | 9.4.8.0+ds-3 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| jruby | source | jessie | 1.5.6-9+deb8u2 | DLA-2027-1 | ||
| jruby | source | stretch | 1.7.26-1+deb9u2 | DLA-2330-1 | ||
| jruby | source | buster | 9.1.17.0-3+deb10u1 | DLA-3408-1 | ||
| jruby | source | (unstable) | 9.3.9.0+ds-1 | 972230 | ||
| ruby2.1 | source | jessie | 2.1.5-2+deb8u8 | DLA-2007-1 | ||
| ruby2.1 | source | (unstable) | (unfixed) | |||
| ruby2.3 | source | stretch | 2.3.3-1+deb9u7 | DSA-4587-1 | ||
| ruby2.3 | source | (unstable) | (unfixed) | |||
| ruby2.5 | source | buster | 2.5.5-3+deb10u1 | DSA-4586-1 | ||
| ruby2.5 | source | (unstable) | 2.5.7-1 |
https://www.ruby-lang.org/en/news/2019/10/01/code-injection-shell-test-cve-2019-16255/
ruby2.5: https://github.com/ruby/ruby/commit/3af01ae1101e0b8815ae5a106be64b0e82a58640