CVE-2019-8320
Fixed in a distro release EPSS 4%
A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2. Before making new directories or touching files (which now include path-checking code for symlinks), it would delete the target destination. If that destination was hidden behind a symlink, a malicious gem could delete arbitrary files on the user's machine, presuming the attacker could guess at paths. Given how frequently gem is run as sudo, and how predictable paths are on modern systems (/tmp, /usr, etc.), this could likely lead to data loss or an unusable system.
Products: rubygems
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| RubyGems | rubygems-update | 2.7.9 |
| RubyGems | rubygems-update | 3.0.3 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.6 | ruby | 2.4.6-r0 |
| Alpine 3.7 | ruby | 2.4.6-r0 |
| Alpine 3.8 | ruby | 2.5.5-r0 |
| Alpine 3.9 | ruby | 2.5.5-r0 |
| Debian 12 | jruby | 9.1.17.0-3 |
| Debian 12 | rubygems | 3.2.0~rc.1-1 |
| Debian 13 | jruby | 9.1.17.0-3 |
| Debian 13 | rubygems | 3.2.0~rc.1-1 |
| Debian 14 | jruby | 9.1.17.0-3 |
| Debian 14 | rubygems | 3.2.0~rc.1-1 |
| Debian 8 | ruby2.1 | 2.1.5-2+deb8u7 |
| Debian 9 | jruby | 1.7.26-1+deb9u2 |
| Debian 9 | ruby2.3 | 2.3.3-1+deb9u6 |
| Red Hat cloudforms managementengine 5.10 | cfme | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-amazon-smartstate | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-appliance | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-appliance-common | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-appliance-debuginfo | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-appliance-tools | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-debuginfo | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-gemset | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | cfme-gemset-debuginfo | 0:5.10.5.1-1.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby-debuginfo | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby-devel | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby-doc | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby-irb | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | ruby-libs | 0:2.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-bigdecimal | 0:1.3.2-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-did_you_mean | 0:1.1.0-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-io-console | 0:0.4.6-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-minitest | 0:5.10.1-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-net-telnet | 0:0.1.1-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-openssl | 0:2.0.9-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-power_assert | 0:0.4.1-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-psych | 0:2.2.2-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-rake | 0:12.0.0-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-rdoc | 0:5.0.0-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-test-unit | 0:3.2.3-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygem-xmlrpc | 0:0.2.1-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygems | 0:2.6.14.4-91.el7cf |
| Red Hat cloudforms managementengine 5.10 | rubygems-devel | 0:2.6.14.4-91.el7cf |
| Red Hat Enterprise Linux 8 | ruby | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-debuginfo | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-debugsource | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-devel | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-doc | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-irb | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-libs | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | ruby-libs-debuginfo | 0:2.5.5-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-abrt | 0:0.3.0-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | 0:0.3.0-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | 0:1.3.4-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal-debuginfo | 0:1.3.4-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bson | 0:4.3.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bson-debuginfo | 0:4.3.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bson-debugsource | 0:4.3.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | 0:4.3.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bundler | 0:1.16.1-3.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | 0:1.16.1-3.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | 0:1.2.0-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-io-console | 0:0.4.6-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-io-console-debuginfo | 0:0.4.6-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-json | 0:2.1.0-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-json-debuginfo | 0:2.1.0-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-minitest | 0:5.10.3-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mongo | 0:2.5.1-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | 0:2.5.1-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | 0:0.4.10-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mysql2-debuginfo | 0:0.4.10-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mysql2-debugsource | 0:0.4.10-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | 0:0.4.10-4.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | 0:0.1.1-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-openssl | 0:2.1.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-openssl-debuginfo | 0:2.1.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-pg | 0:1.0.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-pg-debuginfo | 0:1.0.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-pg-debugsource | 0:1.0.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | 0:1.0.0-2.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-power_assert | 0:1.1.1-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-psych | 0:3.0.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-psych-debuginfo | 0:3.0.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-rake | 0:12.3.0-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-rdoc | 0:6.0.1-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-test-unit | 0:3.2.7-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | 0:0.3.0-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygems | 0:2.7.6.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat Enterprise Linux 8 | rubygems-devel | 0:2.7.6.2-105.module+el8.1.0+3656+f80bfa1d |
| Red Hat rhel software collections 3 | rh-ruby24-ruby | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-debuginfo | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-debuginfo | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-devel | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-devel | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-doc | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-doc | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-irb | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-irb | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-libs | 0:2.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-ruby-libs | 0:2.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-bigdecimal | 0:1.3.2-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-bigdecimal | 0:1.3.2-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-did_you_mean | 0:1.1.0-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-did_you_mean | 0:1.1.0-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-io-console | 0:0.4.6-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-io-console | 0:0.4.6-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-json | 0:2.0.4-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-json | 0:2.0.4-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-minitest | 0:5.10.1-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-minitest | 0:5.10.1-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-net-telnet | 0:0.1.1-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-net-telnet | 0:0.1.1-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-openssl | 0:2.0.9-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-openssl | 0:2.0.9-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-power_assert | 0:0.4.1-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-power_assert | 0:0.4.1-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-psych | 0:2.2.2-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-psych | 0:2.2.2-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-rake | 0:12.0.0-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-rake | 0:12.0.0-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-rdoc | 0:5.0.0-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-rdoc | 0:5.0.0-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-test-unit | 0:3.2.3-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-test-unit | 0:3.2.3-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-xmlrpc | 0:0.2.1-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygem-xmlrpc | 0:0.2.1-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygems | 0:2.6.14.4-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygems | 0:2.6.14.4-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygems-devel | 0:2.6.14.4-92.el7 |
| Red Hat rhel software collections 3 | rh-ruby24-rubygems-devel | 0:2.6.14.4-92.el6 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby-debuginfo | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby-devel | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby-doc | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby-irb | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-ruby-libs | 0:2.5.5-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-bigdecimal | 0:1.3.4-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-did_you_mean | 0:1.2.0-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-io-console | 0:0.4.6-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-json | 0:2.1.0-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-minitest | 0:5.10.3-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-net-telnet | 0:0.1.1-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-openssl | 0:2.1.2-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-power_assert | 0:1.1.1-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-psych | 0:3.0.2-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-rake | 0:12.3.0-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-rdoc | 0:6.0.1-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-test-unit | 0:3.2.7-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygem-xmlrpc | 0:0.3.0-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygems | 0:2.7.6.2-7.el7 |
| Red Hat rhel software collections 3 | rh-ruby25-rubygems-devel | 0:2.7.6.2-7.el7 |
| SUSE Enterprise Storage 5 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE HPE Helion OpenStack 8 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Module for Basesystem 15 | ruby2.5 | 2.5.5-4.3.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP1 | ruby2.5 | 2.5.5-4.3.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server 12 SP2-BCL | yast2-ruby-bindings | 3.1.53-9.8.1 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server 12 SP2-LTSS | yast2-ruby-bindings | 3.1.53-9.8.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server 12 SP3-LTSS | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server 12 SP4 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server 12 SP5 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP2 | yast2-ruby-bindings | 3.1.53-9.8.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE OpenStack Cloud 7 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE OpenStack Cloud 7 | yast2-ruby-bindings | 3.1.53-9.8.1 |
| SUSE OpenStack Cloud 8 | ruby2.1 | 2.1.9-19.3.2 |
| SUSE OpenStack Cloud Crowbar 8 | ruby2.1 | 2.1.9-19.3.2 |
| Ubuntu 14.04 LTS | ruby1.9.1 | 1.9.3.484-2ubuntu1.14 |
| Ubuntu 14.04 LTS | ruby2.0 | 2.0.0.484-1ubuntu2.13 |
| Ubuntu 16.04 LTS | ruby2.3 | 2.3.1-2~16.04.12 |
| Ubuntu 18.04 LTS | jruby | no fix |
| Ubuntu 18.04 LTS | ruby2.5 | 2.5.1-1ubuntu1.2 |
| openSUSE Leap 15.0 | ruby-bundled-gems-rpmhelper | 0.0.2-lp151.2.1 |
| openSUSE Leap 15.0 | ruby2.5 | 2.5.5-lp151.4.3.1 |
| openSUSE Leap 15.1 | ruby-bundled-gems-rpmhelper | 0.0.2-lp151.2.1 |
| openSUSE Leap 15.1 | ruby2.5 | 2.5.5-lp151.4.3.1 |