CVE-2018-8779: 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, the UNIXServer.open and UNIXSocket.open methods are not checked for null characters.
High CVSS 7.5
- CVE id
- CVE-2018-8779
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
>= 2.2.0, < 2.2.10 >= 2.3.0, < 2.3.7 >= 2.4.0, < 2.4.4 >= 2.5.0, < 2.5.1 |
2.2.10, 2.3.7, 2.4.4, 2.5.1 |
How to fix it
Upgrade Ruby to the fixed release of the line you run: 2.2.10, 2.3.7, 2.4.4, 2.5.1.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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, the UNIXServer.open and UNIXSocket.open methods are not checked for null characters. It may be connected to an unintended socket.
References
- CVE-2018-8779 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-8779
- Web: https://access.redhat.com/errata/RHSA-2018:3729
- Web: https://access.redhat.com/errata/RHSA-2018:3730
- Web: https://access.redhat.com/errata/RHSA-2018:3731
- Web: https://access.redhat.com/errata/RHSA-2019:2028
- Web: https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
- Web: https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html
- Web: https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- Web: https://usn.ubuntu.com/3626-1/
- Web: https://www.debian.org/security/2018/dsa-4259
- Web: https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-unixsocket-cve-2018-8779/
- Web: https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/
- Web: https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/
- Web: https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/
- Web: https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
- Web: https://access.redhat.com/errata/RHSA-2018:3729
- Web: https://access.redhat.com/errata/RHSA-2018:3730
- Web: https://access.redhat.com/errata/RHSA-2018:3731
- Web: https://access.redhat.com/errata/RHSA-2019:2028
- Web: https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.