CVE-2019-16255 Code injection in n/a

High 8.1 Published Updated

Attackers can execute arbitrary Ruby code by passing untrusted data to Shell#[] or Shell#test in the Ruby standard library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16255?

CVE-2019-16255 is a high-severity code injection vulnerability in Debian Debian Linux, published on 26 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-94

Which versions are affected by CVE-2019-16255?

It affects 4 products.

Products include Debian Debian Linux, Opensuse Leap, Oracle Graalvm, Ruby-Lang Ruby.

How do I fix CVE-2019-16255?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-16255 being exploited?

There is no known exploitation of CVE-2019-16255 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-16255, CLEANSTART-2026-DF79860, DEBIAN-CVE-2019-16255, GHSA-ph7w-p94x-9vvw, UBUNTU-CVE-2019-16255.

Is CVE-2019-16255 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free