VDB

CVE-2019-16255

CVE-2019-16255 PUBLISHED

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.

PackageEcosystemFixed in
ruby-tcltkAmazon Linux2.0.0.648-36.amzn2.0.7
ruby-irbAmazon Linux2.0.0.648-36.amzn2.0.7
rubygemsAmazon Linux2.0.14.1-36.amzn2.0.7
rubygem-minitestAmazon Linux4.3.2-36.amzn2.0.7
rubygem-psychAmazon Linux2.0.0-36.amzn2.0.7
rubygem-io-consoleAmazon Linux0.4.2-36.amzn2.0.7
ruby-libsAmazon Linux2.0.0.648-36.amzn2.0.7
rubyArch Linux2.6.5-1
rubygem-jsonAmazon Linux1.7.7-36.amzn2.0.7
ruby-docAmazon Linux2.0.0.648-36.amzn2.0.7
rubyAmazon Linux2.0.0.648-36.amzn2.0.7
rubygems-develAmazon Linux2.0.14.1-36.amzn2.0.7

8 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/an/an/a
amazon:2ruby-tcltk0
amazon:2ruby-irb0
amazon:2rubygems0
amazon:2rubygem-minitest0
amazon:2rubygem-psych0
amazon:2rubygem-io-console0
amazon:2ruby-libs0
archruby0
amazon:2rubygem-json0
amazon:2ruby-doc0
amazon:2ruby0
amazon:2rubygems-devel0
amazon:2rubygem-bigdecimal0
amazon:2rubygem-rdoc0
amazon:2rubygem-rake0
amazon:2ruby-devel0
n/an/a*
alpineruby0, 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›