Red Hat Security Advisory: ruby security update
🔗 CVE IDs covered (14)
📋 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-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 products122
- Red Hat Enterprise Linux Client (v. 7)
- Red Hat Enterprise Linux Client Optional (v. 7)
- Red Hat Enterprise Linux ComputeNode (v. 7)
- Red Hat Enterprise Linux ComputeNode Optional (v. 7)
- Red Hat Enterprise Linux Server (v. 7)
- Red Hat Enterprise Linux Server Optional (v. 7)
- Red Hat Enterprise Linux Workstation (v. 7)
- Red Hat Enterprise Linux Workstation Optional (v. 7)
- ruby-0:2.0.0.648-36.el7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-0:2.0.0.648-36.el7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-0:2.0.0.648-36.el7.s390x as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-0:2.0.0.648-36.el7.src as a component of Red Hat Enterprise Linux Client (v. 7)
- ruby-0:2.0.0.648-36.el7.src as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- ruby-0:2.0.0.648-36.el7.src as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-0:2.0.0.648-36.el7.src as a component of Red Hat Enterprise Linux Workstation (v. 7)
- ruby-0:2.0.0.648-36.el7.x86_64 as a component of Red Hat Enterprise Linux Client (v. 7)
- ruby-0:2.0.0.648-36.el7.x86_64 as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- ruby-0:2.0.0.648-36.el7.x86_64 as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-0:2.0.0.648-36.el7.x86_64 as a component of Red Hat Enterprise Linux Workstation (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.i686 as a component of Red Hat Enterprise Linux Client (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.i686 as a component of Red Hat Enterprise Linux ComputeNode (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.i686 as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.i686 as a component of Red Hat Enterprise Linux Workstation (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.ppc as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.ppc64 as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.ppc64 as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.ppc64le as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.ppc64le as a component of Red Hat Enterprise Linux Server Optional (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.s390 as a component of Red Hat Enterprise Linux Server (v. 7)
- ruby-debuginfo-0:2.0.0.648-36.el7.s390x as a component of Red Hat Enterprise Linux Server (v. 7)
- +92 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 (20)
- selfhttps://access.redhat.com/errata/RHSA-2019:2028
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547418
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547419
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547420
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547421
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547422
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547425
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1547426
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561947
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561948
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561949
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561950
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561952
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1561953
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1585737
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1601934
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1643089
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_2028.json