rubygems: Installing a malicious gem may lead to arbitrary code execution
Published Jun 17, 2019
8.8
HIGHCVSS 3.1
EPSS 3.22%
Description
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.
Affected products
No data.
Configuration 2
- 9.0
Configuration 4
- 8.0
No data.
CloudForms Management Engine 5.10
cfme-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-amazon-smartstate-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-appliance-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
cfme-gemset-0:5.10.5.1-1.el7cf
Fixed · RHSA-2019:1429
CloudForms Management Engine 5.10
ruby-0:2.4.6-91.el7cf
Fixed · RHSA-2019:1429
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-35.el7_6
Fixed · RHSA-2019:1235
Red Hat Enterprise Linux 7.4 Advanced Update Support
ruby-0:2.0.0.648-37.el7_4
Fixed · RHSA-2020:2769
Red Hat Enterprise Linux 7.4 Telco Extended Update Support
ruby-0:2.0.0.648-37.el7_4
Fixed · RHSA-2020:2769
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
ruby-0:2.0.0.648-37.el7_4
Fixed · RHSA-2020:2769
Red Hat Enterprise Linux 8
ruby:2.5-8000020190524123348.55190bc5
Fixed · RHSA-2019:1972
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby23-ruby-0:2.3.8-70.el6
Fixed · RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.6-92.el6
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby23-ruby-0:2.3.8-70.el7
Fixed · RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby23-ruby-0:2.3.8-70.el7
Fixed · RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby23-ruby-0:2.3.8-70.el7
Fixed · RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby23-ruby-0:2.3.8-70.el7
Fixed · RHSA-2019:1151
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby24-ruby-0:2.4.6-92.el7
Fixed · RHSA-2019:1150
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby25-ruby-0:2.5.5-7.el7
Fixed · RHSA-2019:1148
Red Hat Enterprise Linux 6
rubygems
Not affected
Red Hat Software Collections
rh-ruby26-ruby
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| CloudForms Management Engine 5.10 | cfme-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-amazon-smartstate-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-appliance-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | cfme-gemset-0:5.10.5.1-1.el7cf | Fixed | RHSA-2019:1429 |
| CloudForms Management Engine 5.10 | ruby-0:2.4.6-91.el7cf | Fixed | RHSA-2019:1429 |
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-35.el7_6 | Fixed | RHSA-2019:1235 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | ruby-0:2.0.0.648-37.el7_4 | Fixed | RHSA-2020:2769 |
| Red Hat Enterprise Linux 7.4 Telco Extended Update Support | ruby-0:2.0.0.648-37.el7_4 | Fixed | RHSA-2020:2769 |
| Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions | ruby-0:2.0.0.648-37.el7_4 | Fixed | RHSA-2020:2769 |
| Red Hat Enterprise Linux 8 | ruby:2.5-8000020190524123348.55190bc5 | Fixed | RHSA-2019:1972 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby23-ruby-0:2.3.8-70.el6 | Fixed | RHSA-2019:1151 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.6-92.el6 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby23-ruby-0:2.3.8-70.el7 | Fixed | RHSA-2019:1151 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby23-ruby-0:2.3.8-70.el7 | Fixed | RHSA-2019:1151 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby23-ruby-0:2.3.8-70.el7 | Fixed | RHSA-2019:1151 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby23-ruby-0:2.3.8-70.el7 | Fixed | RHSA-2019:1151 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby24-ruby-0:2.4.6-92.el7 | Fixed | RHSA-2019:1150 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby25-ruby-0:2.5.5-7.el7 | Fixed | RHSA-2019:1148 |
| Red Hat Enterprise Linux 6 | rubygems | Not affected | n/a |
| Red Hat Software Collections | rh-ruby26-ruby | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (13)
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:1972 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2019-8324 Vendor Advisory
- https://blog.rubygems.org/2019/03/05/security-advisories-2019-03.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1692520 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2019-0514 Advisory
- https://github.com/advisories/GHSA-76wm-422q-92mq Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2019-8324.yml
- https://hackerone.com/reports/328571 x_refsource_MISCPermissions RequiredThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/08/msg00027.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-8324
- https://www.cve.org/CVERecord?id=CVE-2019-8324
- https://www.ruby-lang.org/en/news/2019/03/05/multiple-vulnerabilities-in-rubygems/
Change history (0)
No recorded changes yet.