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.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Rubygems | Rubygems | 2.6.0 (including) | 3.0.2 (including) |
CloudForms Management Engine 5.10 | RedHat | cfme-0:5.10.5.1-1.el7cf | * |
CloudForms Management Engine 5.10 | RedHat | cfme-amazon-smartstate-0:5.10.5.1-1.el7cf | * |
CloudForms Management Engine 5.10 | RedHat | cfme-appliance-0:5.10.5.1-1.el7cf | * |
CloudForms Management Engine 5.10 | RedHat | cfme-gemset-0:5.10.5.1-1.el7cf | * |
CloudForms Management Engine 5.10 | RedHat | ruby-0:2.4.6-91.el7cf | * |
Red Hat Enterprise Linux 7 | RedHat | ruby-0:2.0.0.648-35.el7_6 | * |
Red Hat Enterprise Linux 7.4 Advanced Update Support | RedHat | ruby-0:2.0.0.648-37.el7_4 | * |
Red Hat Enterprise Linux 7.4 Telco Extended Update Support | RedHat | ruby-0:2.0.0.648-37.el7_4 | * |
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | RedHat | ruby-0:2.0.0.648-37.el7_4 | * |
Red Hat Enterprise Linux 8 | RedHat | ruby:2.5-8000020190524123348.55190bc5 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 6 | RedHat | rh-ruby24-ruby-0:2.4.6-92.el6 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 6 | RedHat | rh-ruby23-ruby-0:2.3.8-70.el6 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | RedHat | rh-ruby25-ruby-0:2.5.5-7.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | RedHat | rh-ruby24-ruby-0:2.4.6-92.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7 | RedHat | rh-ruby23-ruby-0:2.3.8-70.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | RedHat | rh-ruby25-ruby-0:2.5.5-7.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | RedHat | rh-ruby24-ruby-0:2.4.6-92.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | RedHat | rh-ruby23-ruby-0:2.3.8-70.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | RedHat | rh-ruby25-ruby-0:2.5.5-7.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | RedHat | rh-ruby24-ruby-0:2.4.6-92.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | RedHat | rh-ruby23-ruby-0:2.3.8-70.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | RedHat | rh-ruby25-ruby-0:2.5.5-7.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | RedHat | rh-ruby24-ruby-0:2.4.6-92.el7 | * |
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | RedHat | rh-ruby23-ruby-0:2.3.8-70.el7 | * |
Jruby | Ubuntu | bionic | * |
Jruby | Ubuntu | cosmic | * |
Jruby | Ubuntu | disco | * |
Jruby | Ubuntu | esm-apps/bionic | * |
Jruby | Ubuntu | trusty/esm | * |
Ruby1.9.1 | Ubuntu | trusty | * |
Ruby2.0 | Ubuntu | trusty | * |
Ruby2.3 | Ubuntu | xenial | * |
Ruby2.5 | Ubuntu | bionic | * |
Ruby2.5 | Ubuntu | cosmic | * |
Ruby2.5 | Ubuntu | disco | * |
Ruby2.5 | Ubuntu | eoan | * |
When a product allows a user’s input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. Such an alteration could lead to arbitrary code execution. Injection problems encompass a wide variety of issues – all mitigated in very different ways. For this reason, the most effective way to discuss these weaknesses is to note the distinct features which classify them as injection weaknesses. The most important issue to note is that all injection problems share one thing in common – i.e., they allow for the injection of control plane data into the user-controlled data plane. This means that the execution of the process may be altered by sending code in through legitimate data channels, using no other mechanism. While buffer overflows, and many other flaws, involve the use of some further issue to gain execution, injection problems need only for the data to be parsed. The most classic instantiations of this category of weakness are SQL injection and format string vulnerabilities.