ID CVE-2017-0898
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:ruby-lang:ruby:2.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.4:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.7:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.7:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
CVSS
Base: 6.4 (as of 15-07-2018 - 01:29)
Impact:
Exploitability:
CWE CWE-134
CAPEC
  • String Format Overflow in syslog()
    This attack targets the format string vulnerabilities in the syslog() function. An attacker would typically inject malicious input in the format string parameter of the syslog function. This is a common problem, and many public vulnerabilities and associated exploits have been posted.
  • Format String Injection
    An adversary includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An adversary can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the adversary can write to the program stack.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE PARTIAL
cvss-vector via4 AV:N/AC:L/Au:N/C:P/I:N/A:P
redhat via4
advisories
  • rhsa
    id RHSA-2017:3485
  • rhsa
    id RHSA-2018:0378
  • rhsa
    id RHSA-2018:0583
  • rhsa
    id RHSA-2018:0585
rpms
  • rh-ruby24-ruby-0:2.4.2-86.el6
  • rh-ruby24-ruby-0:2.4.2-86.el7
  • rh-ruby24-ruby-debuginfo-0:2.4.2-86.el6
  • rh-ruby24-ruby-debuginfo-0:2.4.2-86.el7
  • rh-ruby24-ruby-devel-0:2.4.2-86.el6
  • rh-ruby24-ruby-devel-0:2.4.2-86.el7
  • rh-ruby24-ruby-doc-0:2.4.2-86.el6
  • rh-ruby24-ruby-doc-0:2.4.2-86.el7
  • rh-ruby24-ruby-irb-0:2.4.2-86.el6
  • rh-ruby24-ruby-irb-0:2.4.2-86.el7
  • rh-ruby24-ruby-libs-0:2.4.2-86.el6
  • rh-ruby24-ruby-libs-0:2.4.2-86.el7
  • rh-ruby24-rubygem-bigdecimal-0:1.3.0-86.el6
  • rh-ruby24-rubygem-bigdecimal-0:1.3.0-86.el7
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-86.el6
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-86.el7
  • rh-ruby24-rubygem-io-console-0:0.4.6-86.el6
  • rh-ruby24-rubygem-io-console-0:0.4.6-86.el7
  • rh-ruby24-rubygem-json-0:2.0.4-86.el6
  • rh-ruby24-rubygem-json-0:2.0.4-86.el7
  • rh-ruby24-rubygem-minitest-0:5.10.1-86.el6
  • rh-ruby24-rubygem-minitest-0:5.10.1-86.el7
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-86.el6
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-86.el7
  • rh-ruby24-rubygem-openssl-0:2.0.5-86.el6
  • rh-ruby24-rubygem-openssl-0:2.0.5-86.el7
  • rh-ruby24-rubygem-power_assert-0:0.4.1-86.el6
  • rh-ruby24-rubygem-power_assert-0:0.4.1-86.el7
  • rh-ruby24-rubygem-psych-0:2.2.2-86.el6
  • rh-ruby24-rubygem-psych-0:2.2.2-86.el7
  • rh-ruby24-rubygem-rake-0:12.0.0-86.el6
  • rh-ruby24-rubygem-rake-0:12.0.0-86.el7
  • rh-ruby24-rubygem-rdoc-0:5.0.0-86.el6
  • rh-ruby24-rubygem-rdoc-0:5.0.0-86.el7
  • rh-ruby24-rubygem-test-unit-0:3.2.3-86.el6
  • rh-ruby24-rubygem-test-unit-0:3.2.3-86.el7
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-86.el6
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-86.el7
  • rh-ruby24-rubygems-0:2.6.14-86.el6
  • rh-ruby24-rubygems-0:2.6.14-86.el7
  • rh-ruby24-rubygems-devel-0:2.6.14-86.el6
  • rh-ruby24-rubygems-devel-0:2.6.14-86.el7
  • ruby-0:2.0.0.648-33.el7_4
  • ruby-debuginfo-0:2.0.0.648-33.el7_4
  • ruby-devel-0:2.0.0.648-33.el7_4
  • ruby-doc-0:2.0.0.648-33.el7_4
  • ruby-irb-0:2.0.0.648-33.el7_4
  • ruby-libs-0:2.0.0.648-33.el7_4
  • ruby-tcltk-0:2.0.0.648-33.el7_4
  • rubygem-bigdecimal-0:1.2.0-33.el7_4
  • rubygem-io-console-0:0.4.2-33.el7_4
  • rubygem-json-0:1.7.7-33.el7_4
  • rubygem-minitest-0:4.3.2-33.el7_4
  • rubygem-psych-0:2.0.0-33.el7_4
  • rubygem-rake-0:0.9.6-33.el7_4
  • rubygem-rdoc-0:4.0.0-33.el7_4
  • rubygems-0:2.0.14.1-33.el7_4
  • rubygems-devel-0:2.0.14.1-33.el7_4
  • rh-ruby22-ruby-0:2.2.9-19.el6
  • rh-ruby22-ruby-0:2.2.9-19.el7
  • rh-ruby22-ruby-debuginfo-0:2.2.9-19.el6
  • rh-ruby22-ruby-debuginfo-0:2.2.9-19.el7
  • rh-ruby22-ruby-devel-0:2.2.9-19.el6
  • rh-ruby22-ruby-devel-0:2.2.9-19.el7
  • rh-ruby22-ruby-doc-0:2.2.9-19.el6
  • rh-ruby22-ruby-doc-0:2.2.9-19.el7
  • rh-ruby22-ruby-irb-0:2.2.9-19.el6
  • rh-ruby22-ruby-irb-0:2.2.9-19.el7
  • rh-ruby22-ruby-libs-0:2.2.9-19.el6
  • rh-ruby22-ruby-libs-0:2.2.9-19.el7
  • rh-ruby22-ruby-tcltk-0:2.2.9-19.el6
  • rh-ruby22-ruby-tcltk-0:2.2.9-19.el7
  • rh-ruby22-rubygem-bigdecimal-0:1.2.6-19.el6
  • rh-ruby22-rubygem-bigdecimal-0:1.2.6-19.el7
  • rh-ruby22-rubygem-io-console-0:0.4.3-19.el6
  • rh-ruby22-rubygem-io-console-0:0.4.3-19.el7
  • rh-ruby22-rubygem-json-0:1.8.1.1-19.el6
  • rh-ruby22-rubygem-json-0:1.8.1.1-19.el7
  • rh-ruby22-rubygem-minitest-0:5.4.3-19.el6
  • rh-ruby22-rubygem-minitest-0:5.4.3-19.el7
  • rh-ruby22-rubygem-power_assert-0:0.2.2-19.el6
  • rh-ruby22-rubygem-power_assert-0:0.2.2-19.el7
  • rh-ruby22-rubygem-psych-0:2.0.8.1-19.el6
  • rh-ruby22-rubygem-psych-0:2.0.8.1-19.el7
  • rh-ruby22-rubygem-rake-0:10.4.2-19.el6
  • rh-ruby22-rubygem-rake-0:10.4.2-19.el7
  • rh-ruby22-rubygem-rdoc-0:4.2.0-19.el6
  • rh-ruby22-rubygem-rdoc-0:4.2.0-19.el7
  • rh-ruby22-rubygem-test-unit-0:3.0.8-19.el6
  • rh-ruby22-rubygem-test-unit-0:3.0.8-19.el7
  • rh-ruby22-rubygems-0:2.4.5.4-19.el6
  • rh-ruby22-rubygems-0:2.4.5.4-19.el7
  • rh-ruby22-rubygems-devel-0:2.4.5.4-19.el6
  • rh-ruby22-rubygems-devel-0:2.4.5.4-19.el7
  • rh-ruby23-ruby-0:2.3.6-67.el6
  • rh-ruby23-ruby-0:2.3.6-67.el7
  • rh-ruby23-ruby-debuginfo-0:2.3.6-67.el6
  • rh-ruby23-ruby-debuginfo-0:2.3.6-67.el7
  • rh-ruby23-ruby-devel-0:2.3.6-67.el6
  • rh-ruby23-ruby-devel-0:2.3.6-67.el7
  • rh-ruby23-ruby-doc-0:2.3.6-67.el6
  • rh-ruby23-ruby-doc-0:2.3.6-67.el7
  • rh-ruby23-ruby-irb-0:2.3.6-67.el6
  • rh-ruby23-ruby-irb-0:2.3.6-67.el7
  • rh-ruby23-ruby-libs-0:2.3.6-67.el6
  • rh-ruby23-ruby-libs-0:2.3.6-67.el7
  • rh-ruby23-ruby-tcltk-0:2.3.6-67.el6
  • rh-ruby23-ruby-tcltk-0:2.3.6-67.el7
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-67.el6
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-67.el7
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-67.el6
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-67.el7
  • rh-ruby23-rubygem-io-console-0:0.4.5-67.el6
  • rh-ruby23-rubygem-io-console-0:0.4.5-67.el7
  • rh-ruby23-rubygem-json-0:1.8.3.1-67.el6
  • rh-ruby23-rubygem-json-0:1.8.3.1-67.el7
  • rh-ruby23-rubygem-minitest-0:5.8.5-67.el6
  • rh-ruby23-rubygem-minitest-0:5.8.5-67.el7
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-67.el6
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-67.el7
  • rh-ruby23-rubygem-power_assert-0:0.2.6-67.el6
  • rh-ruby23-rubygem-power_assert-0:0.2.6-67.el7
  • rh-ruby23-rubygem-psych-0:2.1.0.1-67.el6
  • rh-ruby23-rubygem-psych-0:2.1.0.1-67.el7
  • rh-ruby23-rubygem-rake-0:10.4.2-67.el6
  • rh-ruby23-rubygem-rake-0:10.4.2-67.el7
  • rh-ruby23-rubygem-rdoc-0:4.2.1-67.el6
  • rh-ruby23-rubygem-rdoc-0:4.2.1-67.el7
  • rh-ruby23-rubygem-test-unit-0:3.1.5-67.el6
  • rh-ruby23-rubygem-test-unit-0:3.1.5-67.el7
  • rh-ruby23-rubygems-0:2.5.2.2-67.el6
  • rh-ruby23-rubygems-0:2.5.2.2-67.el7
  • rh-ruby23-rubygems-devel-0:2.5.2.2-67.el6
  • rh-ruby23-rubygems-devel-0:2.5.2.2-67.el7
refmap via4
bid 100862
debian DSA-4031
gentoo GLSA-201710-18
misc
mlist [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update
sectrack 1039363
ubuntu USN-3685-1
Last major update 15-07-2018 - 01:29
Published 15-09-2017 - 19:29
Last modified 15-07-2018 - 01:29
Back to Top