Skip to main content
No exploitation reportedFix available

CVE-2019-16255

No exploitation reported by the sources we read.

  • Published2019-11-26
  • WeaknessCWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2019-11-2618:15CVE publishedNVD

Versions per branch

NVD
Ruby
BranchAffectedFixed in
2.4≥ 2.4.0, ≤ 2.4.7no fix published
2.5≥ 2.5.0, ≤ 2.5.6no fix published
2.6≥ 2.6.0, ≤ 2.6.4no fix published
Debian debian linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published
Opensuse leap
BranchAffectedFixed in
15.1= 15.1no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • jrubyUbuntu:Pro:14.04:LTSall versions · fixed in 1.5.6-9+deb8u2build0.14.04.1~esm2
  • jrubyUbuntu:26.10all versions · no fixed version listed
  • jrubyUbuntu:26.04:LTSall versions · no fixed version listed
  • jrubyUbuntu:25.10all versions · no fixed version listed
  • jrubyUbuntu:24.04:LTSall versions · no fixed version listed
  • jrubyUbuntu:20.04:LTSall versions · no fixed version listed
  • jrubyUbuntu:18.04:LTSall versions · no fixed version listed
  • jrubyUbuntu:16.04:LTSall versions · no fixed version listed

226 more package ranges on OSV.dev

Vendor advisories

  • CVE-2019-16255 Red Hat Product Security767 products fixed · 49 known affected

    ruby: Code injection via command argument of Shell#test / Shell#[]

    3amp-system as a component of Red Hat 3scale API Management Platform 2 · ruby.src as a component of Red Hat Enterprise Linux 5 · ruby as a component of Red Hat Enterprise Linux 6 · +46 more

  • RHSA-2022:0582 Red Hat Product Security142 products fixed

    Red Hat Security Advisory: ruby:2.6 security update

  • RHSA-2022:0581 Red Hat Product Security92 products fixed

    Red Hat Security Advisory: ruby:2.6 security update

  • RHSA-2021:2587 Red Hat Product Security144 products fixed

    Red Hat Security Advisory: ruby:2.5 security, bug fix, and enhancement update

  • RHSA-2021:2588 Red Hat Product Security142 products fixed

    Red Hat Security Advisory: ruby:2.6 security, bug fix, and enhancement update

  • RHSA-2021:2230 Red Hat Product Security105 products fixed

    Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update

1 more advisory

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2022:0582 · 142 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. No fix planned, says the vendor Red Hat Product Security CVE-2019-16255 · 11 productsOut of support scope
  3. No fix planned, says the vendor Red Hat Product Security CVE-2019-16255 · 38 productsWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2019-11-26
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-ph7w-p94x-9vvw

Frequently asked questions

What is CVE-2019-16255?

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.

Is CVE-2019-16255 actively exploited?

Active exploitation of CVE-2019-16255 has not been confirmed. Its EPSS score was 4.2% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-16255?

CVE-2019-16255 has a CVSS v3 base score of 8.1 (High severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running Ruby? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record