synced 11 MIN AGO
01 Record

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.

UnratedPUBLISHEDCNA: mitre
CNA base scoreUnratedNo CNA CVSS vector

02 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.

03 Exploitation and scoring

Exploitation
Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
SSVC decision
Not assessed by CISA
EPSS probability
4.18% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 90.5% of scored records. A rank, not a probability.
NVD base score
8.1 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2019-11-26 00:00Z6 YR AGO
Last updated
2024-08-05 01:10Z2 YR AGO
Reserved
2019-09-11
Assigning CNA
mitre
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-94Improper Control of Generation of Code ('Code Injection')Base
Data version
5.1
Document digest
dcde496e408adbf21e8b79f396785da52f404a3e16d3ee54d753f3c3ba51dd3d

05 Affected products

VendorProductVersionsPlatforms
debiandebian_linuxNot specified—
opensuseleapNot specified—
oraclegraalvmNot specified—
redhatenterprise_linuxNot specified—
redhatred_hat_3scale_ampNot specified—
redhatrhel_e4sNot specified—
redhatrhel_eusNot specified—
redhatrhel_software_collectionsNot specified—
ruby-langrubyNot specified—

06 References

07 Fixed in

AlmaLinux 8

  • rubygem-abrt
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.3.0-4.module_el8.5.0+259+8cec6917
    • Affected before 0.3.0-4.module_el8.5.0+2623+08a8ba32
    • Affected before 0.3.0-4.module_el8.5.0+2625+ec418553
  • rubygem-abrt-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.3.0-4.module_el8.5.0+259+8cec6917
    • Affected before 0.3.0-4.module_el8.5.0+2623+08a8ba32
    • Affected before 0.3.0-4.module_el8.5.0+2625+ec418553
  • rubygem-bson
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.3.0-2.module_el8.5.0+259+8cec6917
    • Affected before 4.3.0-2.module_el8.5.0+2625+ec418553
    • Affected before 4.5.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 4.5.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-bson-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.3.0-2.module_el8.5.0+259+8cec6917
    • Affected before 4.3.0-2.module_el8.5.0+2625+ec418553
    • Affected before 4.5.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 4.5.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mongo
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.5.1-2.module_el8.5.0+259+8cec6917
    • Affected before 2.5.1-2.module_el8.5.0+2625+ec418553
    • Affected before 2.8.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 2.8.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mongo-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.5.1-2.module_el8.5.0+259+8cec6917
    • Affected before 2.5.1-2.module_el8.5.0+2625+ec418553
    • Affected before 2.8.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 2.8.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mysql2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.4.10-4.module_el8.5.0+259+8cec6917
    • Affected before 0.4.10-4.module_el8.5.0+2625+ec418553
    • Affected before 0.5.2-1.module_el8.5.0+250+ba22dbf7
    • Affected before 0.5.2-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mysql2-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.4.10-4.module_el8.5.0+259+8cec6917
    • Affected before 0.4.10-4.module_el8.5.0+2625+ec418553
    • Affected before 0.5.2-1.module_el8.5.0+250+ba22dbf7
    • Affected before 0.5.2-1.module_el8.5.0+2623+08a8ba32
  • rubygem-pg
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.0.0-2.module_el8.5.0+259+8cec6917
    • Affected before 1.0.0-2.module_el8.5.0+2625+ec418553
    • Affected before 1.1.4-1.module_el8.5.0+250+ba22dbf7
    • Affected before 1.1.4-1.module_el8.5.0+2623+08a8ba32
  • rubygem-pg-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.0.0-2.module_el8.5.0+259+8cec6917
    • Affected before 1.0.0-2.module_el8.5.0+2625+ec418553
    • Affected before 1.1.4-1.module_el8.5.0+250+ba22dbf7
    • Affected before 1.1.4-1.module_el8.5.0+2623+08a8ba32

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Arch Linux

  • ruby
    Fixed in 2.6.5-1

Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.

CloudLinux 8

  • rubygem-abrt
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.3.0-4.module_el8.5.0+259+8cec6917
    • Affected before 0.3.0-4.module_el8.5.0+2623+08a8ba32
    • Affected before 0.3.0-4.module_el8.5.0+2625+ec418553
  • rubygem-abrt-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.3.0-4.module_el8.5.0+259+8cec6917
    • Affected before 0.3.0-4.module_el8.5.0+2623+08a8ba32
    • Affected before 0.3.0-4.module_el8.5.0+2625+ec418553
  • rubygem-bson
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.3.0-2.module_el8.5.0+259+8cec6917
    • Affected before 4.3.0-2.module_el8.5.0+2625+ec418553
    • Affected before 4.5.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 4.5.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-bson-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.3.0-2.module_el8.5.0+259+8cec6917
    • Affected before 4.3.0-2.module_el8.5.0+2625+ec418553
    • Affected before 4.5.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 4.5.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mongo
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.5.1-2.module_el8.5.0+259+8cec6917
    • Affected before 2.5.1-2.module_el8.5.0+2625+ec418553
    • Affected before 2.8.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 2.8.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mongo-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.5.1-2.module_el8.5.0+259+8cec6917
    • Affected before 2.5.1-2.module_el8.5.0+2625+ec418553
    • Affected before 2.8.0-1.module_el8.5.0+250+ba22dbf7
    • Affected before 2.8.0-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mysql2
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.4.10-4.module_el8.5.0+259+8cec6917
    • Affected before 0.4.10-4.module_el8.5.0+2625+ec418553
    • Affected before 0.5.2-1.module_el8.5.0+250+ba22dbf7
    • Affected before 0.5.2-1.module_el8.5.0+2623+08a8ba32
  • rubygem-mysql2-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.4.10-4.module_el8.5.0+259+8cec6917
    • Affected before 0.4.10-4.module_el8.5.0+2625+ec418553
    • Affected before 0.5.2-1.module_el8.5.0+250+ba22dbf7
    • Affected before 0.5.2-1.module_el8.5.0+2623+08a8ba32
  • rubygem-pg
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.0.0-2.module_el8.5.0+259+8cec6917
    • Affected before 1.0.0-2.module_el8.5.0+2625+ec418553
    • Affected before 1.1.4-1.module_el8.5.0+250+ba22dbf7
    • Affected before 1.1.4-1.module_el8.5.0+2623+08a8ba32
  • rubygem-pg-doc
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.0.0-2.module_el8.5.0+259+8cec6917
    • Affected before 1.0.0-2.module_el8.5.0+2625+ec418553
    • Affected before 1.1.4-1.module_el8.5.0+250+ba22dbf7
    • Affected before 1.1.4-1.module_el8.5.0+2623+08a8ba32

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • jruby
    Fixed in 9.3.9.0+ds-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • jruby
    Fixed in 9.3.9.0+ds-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • jruby
    Fixed in 9.3.9.0+ds-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 16.04 LTS

  • jruby
    No fix yet
  • ruby2.3
    Fixed in 2.3.1-2~ubuntu16.04.14

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • jruby
    No fix yet
  • ruby2.5
    Fixed in 2.5.1-1ubuntu1.6

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • jruby
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 24.04 LTS

  • jruby
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 25.10

  • jruby
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.04 LTS

  • jruby
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 26.10

  • jruby
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • jruby
    Fixed in 1.5.6-9+deb8u2build0.14.04.1~esm2
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.