CVE-2019-16255
Reported by mitre · Published November 26, 2019
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby-tcltk | Amazon Linux | 2.0.0.648-36.amzn2.0.7 |
| ruby-irb | Amazon Linux | 2.0.0.648-36.amzn2.0.7 |
| rubygems | Amazon Linux | 2.0.14.1-36.amzn2.0.7 |
| rubygem-minitest | Amazon Linux | 4.3.2-36.amzn2.0.7 |
| rubygem-psych | Amazon Linux | 2.0.0-36.amzn2.0.7 |
| rubygem-io-console | Amazon Linux | 0.4.2-36.amzn2.0.7 |
| ruby-libs | Amazon Linux | 2.0.0.648-36.amzn2.0.7 |
| ruby | Arch Linux | 2.6.5-1 |
| rubygem-json | Amazon Linux | 1.7.7-36.amzn2.0.7 |
| ruby-doc | Amazon Linux | 2.0.0.648-36.amzn2.0.7 |
| ruby | Amazon Linux | 2.0.0.648-36.amzn2.0.7 |
| rubygems-devel | Amazon Linux | 2.0.14.1-36.amzn2.0.7 |
8 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2 | ruby-irb | 0 |
| amazon:2 | rubygems | 0 |
| amazon:2 | rubygem-minitest | 0 |
| amazon:2 | rubygem-psych | 0 |
| amazon:2 | rubygem-io-console | 0 |
| amazon:2 | ruby-libs | 0 |
| arch | ruby | 0 |
| amazon:2 | rubygem-json | 0 |
| amazon:2 | ruby-doc | 0 |
| amazon:2 | ruby | 0 |
| amazon:2 | rubygems-devel | 0 |
| amazon:2 | rubygem-bigdecimal | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2 | rubygem-rake | 0 |
| amazon:2 | ruby-devel | 0 |
| n/a | n/a | * |
| alpine | ruby | 0, 0, 0 |
Timeline
- Oct 1, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Mar 6, 2026 Distribution Patch (11 in total, the first dated here)
- Mar 6, 2026 Security Advisory (15 in total, the first dated here)
- Sep 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-16255
vulnetix vdb fixes CVE-2019-16255
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-16255/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update mailing-list
- 20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update mailing-list
- 20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update mailing-list
- DSA-4587 vendor-advisory
- GLSA-202003-06 vendor-advisory
- openSUSE-SU-2020:0395 vendor-advisory
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update mailing-list
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update mailing-list