SecurityContext

CVE-2019-16255: Ruby - Command Injection

  • Cve: CVE-2019-16255
  • Name: Ruby - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary Ruby methods, potentially leading to remote code execution or system compromise.
  • Remediation: Update to Ruby 2.4.8, 2.5.7, or 2.6.5 or later versions.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04187
  • Epss percentile: 0.91177
  • Assignee: [email protected]
  • Published at: 2019-11-26T18:15:15Z
  • Age in days: 2555
  • Modified at: 2026-06-17T02:22:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 13
  • Products total: 4
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-16255
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://hackerone.com/reports/327512nvd2019-11-26

References

Same in every row:

  • Source: nvd
UrlTags
https://hackerone.com/reports/327512Exploit, Patch, Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2020.htmlPatch, Third Party Advisory
https://www.ruby-lang.org/ja/news/2019/10/01/code-injection-shell-test-cve-2019-16255/Vendor Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00041.htmlThird Party Advisory
https://lists.debian.org/debian-lts-announce/2019/11/msg00025.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2019/12/msg00009.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/08/msg00027.htmlMailing List, Third Party Advisory
https://security.gentoo.org/glsa/202003-06Third Party Advisory
https://www.debian.org/security/2019/dsa-4587Third Party Advisory
https://www.ruby-lang.org/ja/news/2019/10/01/ruby-2-4-8-released/Release Notes

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
ruby-lang:ruby>= 2.6.0, <= 2.6.4; >= 2.5.0, <= 2.5.6; >= 2.4.0, <= 2.4.7/v1/products/ruby-lang/ruby
debian:debian_linux= 9.0, = 8.0/v1/products/debian/debian_linux
opensuse:leap= 15.1/v1/products/opensuse/leap
oracle:graalvm= 19.3.0.2/v1/products/oracle/graalvm

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2019-11-26
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports