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
  • 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.
  • 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.
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
  • ruby-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
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
Back to Top