CVE-2019-16255

HIGHCVSS 8.1/10EPSS 4.22%

Last modified

CVE-2019-16255 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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.. EPSS estimates a 4.22% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
8.1/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
4.22%

89.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

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

References

Timeline

Published
Last Modified
Status
Modified

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.
How severe is CVE-2019-16255?
CVE-2019-16255 has a CVSS score of 8.1/10 (HIGH severity). The EPSS model estimates a 4.22% probability of exploitation in the next 30 days.
How do I fix CVE-2019-16255?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2019-16255?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST