ID CVE-2019-8324
Summary An issue was discovered in RubyGems 2.6 and later through 3.0.2. A crafted gem with a multi-line name is not handled correctly. Therefore, an attacker could inject arbitrary code to the stub line of gemspec, which is eval-ed by code in ensure_loadable_spec during the preinstall check.
References
Vulnerable Configurations
  • cpe:2.3:a:rubygems:rubygems:2.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.4:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.4:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.5:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.5:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.6:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.6:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.7:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.7:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.8:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.8:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.9:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.9:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.10:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.10:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.11:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.11:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.12:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.12:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.13:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.13:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.6.14:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.6.14:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.3:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.3:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.4:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.4:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.5:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.5:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.6:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.6:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.7:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.7:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.8:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.8:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.9:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.9:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:2.7.10:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:2.7.10:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.0:-:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.0:-:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.0:beta1:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.0:beta1:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.0:beta2:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.0:beta2:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.0:beta3:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.0:beta3:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:rubygems:rubygems:3.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:rubygems:rubygems:3.0.2:*:*:*:*:*:*:*
  • 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.0:*:*:*:*:*:*:*
    cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*
  • cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
    cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
CVSS
Base: 6.8 (as of 21-07-2019 - 12: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
redhat via4
rpms
  • ruby-0:2.0.0.648-35.el7_6
  • ruby-devel-0:2.0.0.648-35.el7_6
  • ruby-doc-0:2.0.0.648-35.el7_6
  • ruby-irb-0:2.0.0.648-35.el7_6
  • ruby-libs-0:2.0.0.648-35.el7_6
  • ruby-tcltk-0:2.0.0.648-35.el7_6
  • rubygem-bigdecimal-0:1.2.0-35.el7_6
  • rubygem-io-console-0:0.4.2-35.el7_6
  • rubygem-json-0:1.7.7-35.el7_6
  • rubygem-minitest-0:4.3.2-35.el7_6
  • rubygem-psych-0:2.0.0-35.el7_6
  • rubygem-rake-0:0.9.6-35.el7_6
  • rubygem-rdoc-0:4.0.0-35.el7_6
  • rubygems-0:2.0.14.1-35.el7_6
  • rubygems-devel-0:2.0.14.1-35.el7_6
Last major update 21-07-2019 - 12:15
Published 17-06-2019 - 19:15
Last modified 24-08-2020 - 17:37
Back to Top