RHSA-2018:3731HighCVSS 7.8

Red Hat Security Advisory: rh-ruby25-ruby security, bug fix, and enhancement update

Published
November 29, 2018
Last Modified
November 7, 2026

🔗 CVE IDs covered (15)

📋 Description

CVE-2017-17742 — ruby: HTTP response splitting in WEBrick CVE-2018-6914 — ruby: Unintentional file and directory creation with directory traversal in tempfile and tmpdir CVE-2018-8777 — ruby: DoS by large request in WEBrick CVE-2018-8778 — ruby: Buffer under-read in String#unpack CVE-2018-8779 — ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket CVE-2018-8780 — ruby: Unintentional directory traversal by poisoned NULL byte in Dir CVE-2018-16395 — ruby: OpenSSL::X509:: Name equality check does not work correctly CVE-2018-16396 — ruby: Tainted flags are not propagated in Array#pack and String#unpack with some directives CVE-2018-1000073 — rubygems: Path traversal when writing to a symlinked basedir outside of the root CVE-2018-1000074 — rubygems: Unsafe Object Deserialization Vulnerability in gem owner allowing arbitrary code execution on specially crafted YAML CVE-2018-1000075 — rubygems: Infinite loop vulnerability due to negative size in tar header causes Denial of Service CVE-2018-1000076 — rubygems: Improper verification of signatures in tarball allows to install mis-signed gem CVE-2018-1000077 — rubygems: Missing URL validation on spec home attribute allows malicious gem to set an invalid homepage URL CVE-2018-1000078 — rubygems: XSS vulnerability in homepage attribute when displayed via gem server CVE-2018-1000079 — rubygems: Path traversal issue during gem installation allows to write to arbitrary filesystem locations

🎯 Affected products196

  • Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.aarch64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • rh-ruby25-ruby-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • rh-ruby25-ruby-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • rh-ruby25-ruby-0:2.5.3-6.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • rh-ruby25-ruby-0:2.5.3-6.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • rh-ruby25-ruby-0:2.5.3-6.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • rh-ruby25-ruby-0:2.5.3-6.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • rh-ruby25-ruby-0:2.5.3-6.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • rh-ruby25-ruby-0:2.5.3-6.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • rh-ruby25-ruby-0:2.5.3-6.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-0:2.5.3-6.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • rh-ruby25-ruby-0:2.5.3-6.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • rh-ruby25-ruby-0:2.5.3-6.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • rh-ruby25-ruby-0:2.5.3-6.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.aarch64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
  • rh-ruby25-ruby-debuginfo-0:2.5.3-6.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
  • +166 more not shown

✅ Remediation

For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: The server can manually sanitize possibly untrusted headers prior to inserting them in the reply. Workaround: Vulnerable code when String#unpack's argument is attacker controlled. In the unpack format string argemument, manual sanitization can be done by preventing the number following '@' to overflow to a negative number. See https://dev.to/sqreenio/an-in-depth-look-at-cve-2018-8878-or-why-integer-overflows-are-still-a-thing-1n01 for mitigation details. Workaround: It is possible to test for presence of the NULL byte manually prior to call the affected methods. Workaround: It is possible to test for presence of the NULL byte manually prior to call a Dir method with an untrusted string.

🔗 References (19)