CVE-2018-8778
ruby: Buffer under-read in String#unpack
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-134
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 96 fixes
Oracle Linux 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-io-console | 0.4.2-36.el7 |
| 7 | rubygem-rake | 0.9.6-36.el7 |
| 7 | rubygem-bigdecimal | 1.2.0-36.el7 |
| 7 | rubygem-json | 1.7.7-36.el7 |
| 7 | rubygem-psych | 2.0.0-36.el7 |
| 7 | ruby +5 | 2.0.0.648-36.el7 |
3 more rows
Red Hat 1 release · 52 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | rh-ruby25-rubygem-net-telnet | 0:0.1.1-6.el7 | RHSA-2018:3731 |
| 7 | rh-ruby23-rubygem-net-telnet | 0:0.1.1-69.el7 | RHSA-2018:3729 |
| 7 | rh-ruby24-rubygem-net-telnet | 0:0.1.1-91.el7 | RHSA-2018:3730 |
| 7 | rh-ruby24-rubygem-xmlrpc | 0:0.2.1-91.el7 | RHSA-2018:3730 |
| 7 | rh-ruby23-rubygem-power-assert | 0:0.2.6-69.el7 | RHSA-2018:3729 |
| 7 | rh-ruby25-rubygem-xmlrpc | 0:0.3.0-6.el7 | RHSA-2018:3731 |
73 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libruby2-1-2-1 +3 | 2.1.9-19.3.2 | SUSE-SU-2020:1570-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 2.5.1-r0 |
| 3.23 | ruby | 2.5.1-r0 |
| 3.24 | ruby | 2.5.1-r0 |
| edge | ruby | 2.5.1-r0 |
debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | ruby2-3 | 2.3.3-1+deb9u3 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | ruby2-5 | 2.5.1-1 |
| 18.04-ESM | ruby2-5 | 2.5.1-1 |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- www.securityfocus.com http://www.securityfocus.com/bid/103693
- www.securitytracker.com http://www.securitytracker.com/id/1042004
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3729
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3730
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:3731
- access.redhat.com https://access.redhat.com/errata/RHSA-2019:2028
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-8778
- github.com https://github.com/ruby/ruby/commit/4cd92d7b13002161a3452a0fe278b877901a8859
- github.com https://github.com/ruby/ruby/commit/d02b7bd864706fc2a40d83fb6014772ad3cc3b80
Show all 25 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2018-8778.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2019-2028.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-8778
- ubuntu.com https://ubuntu.com/security/notices/USN-3626-1
- usn.ubuntu.com https://usn.ubuntu.com/3626-1/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-8778
- www.debian.org https://www.debian.org/security/2018/dsa-4259
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2018/03/28/buffer-under-read-unpack-cve-2018-8778/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.