ID CVE-2019-16255
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:-:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:-:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:preview2:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:preview3:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:preview3:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:rc2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:rc2:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.4:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.4:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.6:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.6:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.4:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.4:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.5:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.5:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.6:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.6:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.7:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.7:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
    cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
  • cpe:2.3:a:oracle:graalvm:19.3.0.2:*:*:*:enterprise:*:*:*
    cpe:2.3:a:oracle:graalvm:19.3.0.2:*:*:*:enterprise:*:*:*
CVSS
Base: 6.8 (as of 30-04-2023 - 23:15)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Code Injection
    An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:N/AC:M/Au:N/C:P/I:P/A:P
refmap via4
bugtraq
  • 20191217 [SECURITY] [DSA 4586-1] ruby2.5 security update
  • 20191217 [SECURITY] [DSA 4587-1] ruby2.3 security update
confirm
debian DSA-4587
gentoo GLSA-202003-06
misc
mlist
  • [debian-lts-announce] 20191210 [SECURITY] [DLA 2027-1] jruby security update
  • [debian-lts-announce] 20200816 [SECURITY] [DLA 2330-1] jruby security update
suse openSUSE-SU-2020:0395
Last major update 30-04-2023 - 23:15
Published 26-11-2019 - 18:15
Last modified 30-04-2023 - 23:15
Back to Top