Live threats

All CVEs / Ruby-lang

CVE-2019-16255Ruby-lang Ruby

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
4.2%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Nov 26, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.4.0 ≤ 2.4.7
ruby-langruby≥ 2.5.0 ≤ 2.5.6
ruby-langruby≥ 2.6.0 ≤ 2.6.4
debiandebian_linux8.0
debiandebian_linux9.0
opensuseleap15.1
oraclegraalvm19.3.0.2

Official sources

References

Links published by the sources. Open them with care.