ID CVE-2018-8778
Summary In Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1, an attacker controlling the unpacking format (similar to format string vulnerabilities) can trigger a buffer under-read in the String#unpack method, resulting in a massive and controlled information disclosure.
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.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.0:preview2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.0:preview2:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.0:rc1:*:*:*:*:*:*
  • 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.2.8:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.8:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.2.9:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.2.9:*:*:*:*:*:*:*
  • 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.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.0:preview2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.0:preview2:*:*:*:*:*:*
  • 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.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.3.6:*:*:*:*:*:*:*
  • 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.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.5.0:preview1:*:*:*:*:*:*
  • cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*
    cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
  • cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
    cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.4:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.5:*:*:*:*:*:*:*
  • cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
    cpe:2.3:o:redhat:enterprise_linux:7.6:*:*:*:*:*:*:*
CVSS
Base: 5.0 (as of 03-10-2019 - 00:03)
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 NONE
cvss-vector via4 AV:N/AC:L/Au:N/C:P/I:N/A:N
redhat via4
advisories
  • rhsa
    id RHSA-2018:3729
  • rhsa
    id RHSA-2018:3730
  • rhsa
    id RHSA-2018:3731
  • rhsa
    id RHSA-2019:2028
rpms
  • rh-ruby23-ruby-0:2.3.8-69.el6
  • rh-ruby23-ruby-0:2.3.8-69.el7
  • rh-ruby23-ruby-debuginfo-0:2.3.8-69.el6
  • rh-ruby23-ruby-debuginfo-0:2.3.8-69.el7
  • rh-ruby23-ruby-devel-0:2.3.8-69.el6
  • rh-ruby23-ruby-devel-0:2.3.8-69.el7
  • rh-ruby23-ruby-doc-0:2.3.8-69.el6
  • rh-ruby23-ruby-doc-0:2.3.8-69.el7
  • rh-ruby23-ruby-irb-0:2.3.8-69.el6
  • rh-ruby23-ruby-irb-0:2.3.8-69.el7
  • rh-ruby23-ruby-libs-0:2.3.8-69.el6
  • rh-ruby23-ruby-libs-0:2.3.8-69.el7
  • rh-ruby23-ruby-tcltk-0:2.3.8-69.el6
  • rh-ruby23-ruby-tcltk-0:2.3.8-69.el7
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-69.el6
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-69.el7
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-69.el6
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-69.el7
  • rh-ruby23-rubygem-io-console-0:0.4.5-69.el6
  • rh-ruby23-rubygem-io-console-0:0.4.5-69.el7
  • rh-ruby23-rubygem-json-0:1.8.3.1-69.el6
  • rh-ruby23-rubygem-json-0:1.8.3.1-69.el7
  • rh-ruby23-rubygem-minitest-0:5.8.5-69.el6
  • rh-ruby23-rubygem-minitest-0:5.8.5-69.el7
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-69.el6
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-69.el7
  • rh-ruby23-rubygem-power_assert-0:0.2.6-69.el6
  • rh-ruby23-rubygem-power_assert-0:0.2.6-69.el7
  • rh-ruby23-rubygem-psych-0:2.1.0.1-69.el6
  • rh-ruby23-rubygem-psych-0:2.1.0.1-69.el7
  • rh-ruby23-rubygem-rake-0:10.4.2-69.el6
  • rh-ruby23-rubygem-rake-0:10.4.2-69.el7
  • rh-ruby23-rubygem-rdoc-0:4.2.1-69.el6
  • rh-ruby23-rubygem-rdoc-0:4.2.1-69.el7
  • rh-ruby23-rubygem-test-unit-0:3.1.5-69.el6
  • rh-ruby23-rubygem-test-unit-0:3.1.5-69.el7
  • rh-ruby23-rubygems-0:2.5.2.3-69.el6
  • rh-ruby23-rubygems-0:2.5.2.3-69.el7
  • rh-ruby23-rubygems-devel-0:2.5.2.3-69.el6
  • rh-ruby23-rubygems-devel-0:2.5.2.3-69.el7
  • rh-ruby24-ruby-0:2.4.5-91.el6
  • rh-ruby24-ruby-0:2.4.5-91.el7
  • rh-ruby24-ruby-debuginfo-0:2.4.5-91.el6
  • rh-ruby24-ruby-debuginfo-0:2.4.5-91.el7
  • rh-ruby24-ruby-devel-0:2.4.5-91.el6
  • rh-ruby24-ruby-devel-0:2.4.5-91.el7
  • rh-ruby24-ruby-doc-0:2.4.5-91.el6
  • rh-ruby24-ruby-doc-0:2.4.5-91.el7
  • rh-ruby24-ruby-irb-0:2.4.5-91.el6
  • rh-ruby24-ruby-irb-0:2.4.5-91.el7
  • rh-ruby24-ruby-libs-0:2.4.5-91.el6
  • rh-ruby24-ruby-libs-0:2.4.5-91.el7
  • rh-ruby24-rubygem-bigdecimal-0:1.3.2-91.el6
  • rh-ruby24-rubygem-bigdecimal-0:1.3.2-91.el7
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-91.el6
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-91.el7
  • rh-ruby24-rubygem-io-console-0:0.4.6-91.el6
  • rh-ruby24-rubygem-io-console-0:0.4.6-91.el7
  • rh-ruby24-rubygem-json-0:2.0.4-91.el6
  • rh-ruby24-rubygem-json-0:2.0.4-91.el7
  • rh-ruby24-rubygem-minitest-0:5.10.1-91.el6
  • rh-ruby24-rubygem-minitest-0:5.10.1-91.el7
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-91.el6
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-91.el7
  • rh-ruby24-rubygem-openssl-0:2.0.9-91.el6
  • rh-ruby24-rubygem-openssl-0:2.0.9-91.el7
  • rh-ruby24-rubygem-power_assert-0:0.4.1-91.el6
  • rh-ruby24-rubygem-power_assert-0:0.4.1-91.el7
  • rh-ruby24-rubygem-psych-0:2.2.2-91.el6
  • rh-ruby24-rubygem-psych-0:2.2.2-91.el7
  • rh-ruby24-rubygem-rake-0:12.0.0-91.el6
  • rh-ruby24-rubygem-rake-0:12.0.0-91.el7
  • rh-ruby24-rubygem-rdoc-0:5.0.0-91.el6
  • rh-ruby24-rubygem-rdoc-0:5.0.0-91.el7
  • rh-ruby24-rubygem-test-unit-0:3.2.3-91.el6
  • rh-ruby24-rubygem-test-unit-0:3.2.3-91.el7
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-91.el6
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-91.el7
  • rh-ruby24-rubygems-0:2.6.14.3-91.el6
  • rh-ruby24-rubygems-0:2.6.14.3-91.el7
  • rh-ruby24-rubygems-devel-0:2.6.14.3-91.el6
  • rh-ruby24-rubygems-devel-0:2.6.14.3-91.el7
  • rh-ruby25-ruby-0:2.5.3-6.el7
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7
  • rh-ruby25-ruby-devel-0:2.5.3-6.el7
  • rh-ruby25-ruby-doc-0:2.5.3-6.el7
  • rh-ruby25-ruby-irb-0:2.5.3-6.el7
  • rh-ruby25-ruby-libs-0:2.5.3-6.el7
  • rh-ruby25-rubygem-bigdecimal-0:1.3.4-6.el7
  • rh-ruby25-rubygem-did_you_mean-0:1.2.0-6.el7
  • rh-ruby25-rubygem-io-console-0:0.4.6-6.el7
  • rh-ruby25-rubygem-json-0:2.1.0-6.el7
  • rh-ruby25-rubygem-minitest-0:5.10.3-6.el7
  • rh-ruby25-rubygem-net-telnet-0:0.1.1-6.el7
  • rh-ruby25-rubygem-openssl-0:2.1.2-6.el7
  • rh-ruby25-rubygem-power_assert-0:1.1.1-6.el7
  • rh-ruby25-rubygem-psych-0:3.0.2-6.el7
  • rh-ruby25-rubygem-rake-0:12.3.0-6.el7
  • rh-ruby25-rubygem-rdoc-0:6.0.1-6.el7
  • rh-ruby25-rubygem-test-unit-0:3.2.7-6.el7
  • rh-ruby25-rubygem-xmlrpc-0:0.3.0-6.el7
  • rh-ruby25-rubygems-0:2.7.6-6.el7
  • rh-ruby25-rubygems-devel-0:2.7.6-6.el7
  • ruby-0:2.0.0.648-36.el7
  • ruby-debuginfo-0:2.0.0.648-36.el7
  • ruby-devel-0:2.0.0.648-36.el7
  • ruby-doc-0:2.0.0.648-36.el7
  • ruby-irb-0:2.0.0.648-36.el7
  • ruby-libs-0:2.0.0.648-36.el7
  • ruby-tcltk-0:2.0.0.648-36.el7
  • rubygem-bigdecimal-0:1.2.0-36.el7
  • rubygem-io-console-0:0.4.2-36.el7
  • rubygem-json-0:1.7.7-36.el7
  • rubygem-minitest-0:4.3.2-36.el7
  • rubygem-psych-0:2.0.0-36.el7
  • rubygem-rake-0:0.9.6-36.el7
  • rubygem-rdoc-0:4.0.0-36.el7
  • rubygems-0:2.0.14.1-36.el7
  • rubygems-devel-0:2.0.14.1-36.el7
  • ruby-0:2.0.0.648-36.el7_5
  • ruby-debuginfo-0:2.0.0.648-36.el7_5
  • ruby-devel-0:2.0.0.648-36.el7_5
  • ruby-doc-0:2.0.0.648-36.el7_5
  • ruby-irb-0:2.0.0.648-36.el7_5
  • ruby-libs-0:2.0.0.648-36.el7_5
  • ruby-tcltk-0:2.0.0.648-36.el7_5
  • rubygem-bigdecimal-0:1.2.0-36.el7_5
  • rubygem-io-console-0:0.4.2-36.el7_5
  • rubygem-json-0:1.7.7-36.el7_5
  • rubygem-minitest-0:4.3.2-36.el7_5
  • rubygem-psych-0:2.0.0-36.el7_5
  • rubygem-rake-0:0.9.6-36.el7_5
  • rubygem-rdoc-0:4.0.0-36.el7_5
  • rubygems-0:2.0.14.1-36.el7_5
  • rubygems-devel-0:2.0.14.1-36.el7_5
  • ruby-0:2.0.0.648-36.el7_4
  • ruby-debuginfo-0:2.0.0.648-36.el7_4
  • ruby-devel-0:2.0.0.648-36.el7_4
  • ruby-doc-0:2.0.0.648-36.el7_4
  • ruby-irb-0:2.0.0.648-36.el7_4
  • ruby-libs-0:2.0.0.648-36.el7_4
  • ruby-tcltk-0:2.0.0.648-36.el7_4
  • rubygem-bigdecimal-0:1.2.0-36.el7_4
  • rubygem-io-console-0:0.4.2-36.el7_4
  • rubygem-json-0:1.7.7-36.el7_4
  • rubygem-minitest-0:4.3.2-36.el7_4
  • rubygem-psych-0:2.0.0-36.el7_4
  • rubygem-rake-0:0.9.6-36.el7_4
  • rubygem-rdoc-0:4.0.0-36.el7_4
  • rubygems-0:2.0.14.1-36.el7_4
  • rubygems-devel-0:2.0.14.1-36.el7_4
  • ruby-0:2.0.0.648-37.el7_6
  • ruby-debuginfo-0:2.0.0.648-37.el7_6
  • ruby-devel-0:2.0.0.648-37.el7_6
  • ruby-doc-0:2.0.0.648-37.el7_6
  • ruby-irb-0:2.0.0.648-37.el7_6
  • ruby-libs-0:2.0.0.648-37.el7_6
  • ruby-tcltk-0:2.0.0.648-37.el7_6
  • rubygem-bigdecimal-0:1.2.0-37.el7_6
  • rubygem-io-console-0:0.4.2-37.el7_6
  • rubygem-json-0:1.7.7-37.el7_6
  • rubygem-minitest-0:4.3.2-37.el7_6
  • rubygem-psych-0:2.0.0-37.el7_6
  • rubygem-rake-0:0.9.6-37.el7_6
  • rubygem-rdoc-0:4.0.0-37.el7_6
  • rubygems-0:2.0.14.1-37.el7_6
  • rubygems-devel-0:2.0.14.1-37.el7_6
refmap via4
bid 103693
confirm
debian DSA-4259
mlist
  • [debian-lts-announce] 20180423 [SECURITY] [DLA 1358-1] ruby1.9.1 security update
  • [debian-lts-announce] 20180423 [SECURITY] [DLA 1359-1] ruby1.8 security update
  • [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update
sectrack 1042004
suse openSUSE-SU-2019:1771
ubuntu USN-3626-1
Last major update 03-10-2019 - 00:03
Published 03-04-2018 - 22:29
Last modified 03-10-2019 - 00:03
Back to Top