Back
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)…
- 8.1HighCVSS base score
- 4.2%Exploitation in 30 daysEPSS · top 8.9% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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
ID reserved
By mitre
- 3 months later
· 3 months later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.2% · top 8.9% of all CVEs (11 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
n/a
- affected n/a
References
References15
- https://hackerone.com/reports/327512 (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2019/11/msg00025.html (opens in a new tab)x_transferred
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-6-5-released/ (opens in a new tab)x_transferred
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-5-7-released/ (opens in a new tab)x_transferred
- https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/ (opens in a new tab)x_transferred
- https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/ (opens in a new tab)x_transferred
- [debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update (opens in a new tab)mailing-listx_transferred
- 20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update (opens in a new tab)mailing-listx_transferred
- 20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update (opens in a new tab)mailing-listx_transferred
- DSA-4587 (opens in a new tab)vendor-advisoryx_transferred
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_transferred
- GLSA-202003-06 (opens in a new tab)vendor-advisoryx_transferred
- openSUSE-SU-2020:0395 (opens in a new tab)vendor-advisoryx_transferred
- [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update (opens in a new tab)mailing-listx_transferred
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update (opens in a new tab)mailing-listx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2019-7061 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-16255)Record last updated .