Skip to content
OpenAdvisories
Unscored CVE-2017-0898 EUVD-2017-1251GHSA-wvmx-3rv2-5jgf

Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus va…

Published Sep 15, 2017 · Updated Sep 17, 2024 · Assigned by hackerone

Description

Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus value. Such situation can lead to a buffer overrun, resulting in a heap memory corruption or an information disclosure from the heap.

Affected products

VendorProductAffectedFixed
HackerOne Ruby Versions before 2.4.2, 2.3.5, and 2.2.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 9 ruby2.3 2.3.3-1+deb9u2 DSA-4031-1
Debian 8 ruby2.1 2.1.5-2+deb8u4 DLA-1421-1
Debian 7 ruby1.8 1.8.7.358-7.1+deb7u4 DLA-1113-1
Debian 7 ruby1.9.1 1.9.3.194-8.1+deb7u6 DLA-1114-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby2.3 2.3.1-2~16.04.10 USN-3685-1
Ubuntu 14.04 LTS ruby1.9.1 1.9.3.484-2ubuntu1.5 USN-3685-1, USN-3439-1
Ubuntu 14.04 LTS ruby2.0 2.0.0.484-1ubuntu2.10 USN-3685-1
ReleasePackageFixed inAdvisory
RHEL 7 ruby +5 2.0.0.648-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-bigdecimal 1.2.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-io-console 0.4.2-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-json 1.7.7-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-minitest 4.3.2-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-psych 2.0.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-rake 0.9.6-33.el7_4 RHSA-2018:0378
RHEL 7 rubygem-rdoc 4.0.0-33.el7_4 RHSA-2018:0378
RHEL 7 rubygems +1 2.0.14.1-33.el7_4 RHSA-2018:0378
RHEL 3 rh-ruby22-ruby +5 2.2.9-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-bigdecimal 1.2.6-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-io-console 0.4.3-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-json 1.8.1.1-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-minitest 5.4.3-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-power_assert 0.2.2-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-psych 2.0.8.1-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-rake 10.4.2-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-rdoc 4.2.0-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygem-test-unit 3.0.8-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby22-rubygems +1 2.4.5.4-19.el6 RHSA-2018:0583
RHEL 3 rh-ruby23-ruby +5 2.3.6-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-bigdecimal 1.2.8-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-did_you_mean 1.0.0-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-io-console 0.4.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-json 1.8.3.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-minitest 5.8.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-net-telnet 0.1.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-power_assert 0.2.6-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-psych 2.1.0.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-rake 10.4.2-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-rdoc 4.2.1-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygem-test-unit 3.1.5-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby23-rubygems +1 2.5.2.2-67.el6 RHSA-2018:0585
RHEL 3 rh-ruby24-ruby +4 2.4.2-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-bigdecimal 1.3.0-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-did_you_mean 1.1.0-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-io-console 0.4.6-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-json 2.0.4-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-minitest 5.10.1-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-net-telnet 0.1.1-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-openssl 2.0.5-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-power_assert 0.4.1-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-psych 2.2.2-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-rake 12.0.0-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-rdoc 5.0.0-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-test-unit 3.2.3-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygem-xmlrpc 0.2.1-86.el6 RHSA-2017:3485
RHEL 3 rh-ruby24-rubygems +1 2.6.14-86.el6 RHSA-2017:3485
ReleasePackageFixed inAdvisory
SLES 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP4 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP3 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SLES for SAP 12 SP2 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud Crowbar 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE OpenStack Cloud 7 yast2-ruby-bindings 3.1.53-9.8.1 SUSE-SU-2020:1570-1
SUSE HPE Helion OpenStack 8 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
SUSE Enterprise Storage 5 ruby2.1 2.1.9-19.3.2 SUSE-SU-2020:1570-1
ReleasePackageFixed inAdvisory
Alpine v3.24 ruby 2.4.2-r0 —
Alpine v3.23 ruby 2.4.2-r0 —
Alpine v3.22 ruby 2.4.2-r0 —
Alpine v3.21 ruby 2.4.2-r0 —
Alpine v3.20 ruby 2.4.2-r0 —
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 ruby 2.4.2-r0 —
Alpine v3.18 ruby 2.4.2-r0 —
Alpine v3.17 ruby 2.4.2-r0 —
Alpine v3.16 ruby 2.4.2-r0 —
Alpine v3.15 ruby 2.4.2-r0 —
Alpine v3.14 ruby 2.4.2-r0 —
Alpine v3.13 ruby 2.4.2-r0 —
Alpine v3.12 ruby 2.4.2-r0 —
Alpine v3.11 ruby 2.4.2-r0 —
Alpine v3.10 ruby 2.4.2-r0 —
Alpine v3.9 ruby 2.4.2-r0 —
Alpine v3.8 ruby 2.4.2-r0 —
Alpine v3.7 ruby 2.4.2-r0 —
Alpine v3.6 ruby 2.4.2-r0 —
Alpine v3.6 ruby2.2 2.2.8-r0 —
Alpine v3.5 ruby 2.3.5-r0 —
Alpine v3.5 ruby2.2 2.2.8-r0 —
Alpine v3.4 ruby 2.3.5-r0 —
Alpine v3.3 ruby 2.2.8-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ruby +5 2.0.0.648-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-bigdecimal 1.2.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-io-console 0.4.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-json 1.7.7-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-minitest 4.3.2-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-psych 2.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rake 0.9.6-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygem-rdoc 4.0.0-33.el7_4 ELSA-2018-0378
Oracle Linux 7 rubygems +1 2.0.14.1-33.el7_4 ELSA-2018-0378

Advisories 13

References