CVE-2018-8779
published 2018-04-03CVE-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…
PriorityP340high7.5CVSS 3.0
AVNACLPRNUINSUCNIHAN
EPSS
7.17%
93.5th percentile
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.
Affected
36 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | macos_high_sierra_10.13.6_security_update_2018-004_sierra_security_update_2018-0 | — | — |
| apple | macos_mojave_10.14.1_security_update_2018-002_high_sierra_security_update_2018-0 | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| libtirpc_project | libtirpc | >= 0 < 0.2.2-5ubuntu2.1 | 0.2.2-5ubuntu2.1 |
| libtirpc_project | libtirpc | >= 0 < 0.2.5-1ubuntu0.1 | 0.2.5-1ubuntu0.1 |
| libtirpc_project | libtirpc | >= 0 < 0.2.5-1.2ubuntu0.1 | 0.2.5-1.2ubuntu0.1 |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
| ruby-lang | ruby | >= 0 < 2.5.1-r0 | 2.5.1-r0 |
CVSS provenance
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:P/A:N
osv7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Apple
CVE-2018-8779: macOS Mojave 10.14.1, Security Update 2018-002 High Sierra, Security Update 2018-005 Sierra
vendor_apple·2018-10-30·CVSS 7.5
CVE-2018-8779 [HIGH] CVE-2018-8779: macOS Mojave 10.14.1, Security Update 2018-002 High Sierra, Security Update 2018-005 Sierra
Apple Security Update: About the security content of macOS Mojave 10.14.1, Security Update 2018-002 High Sierra, Security Update 2018-005 Sierra
Product: macOS Mojave 10.14.1, Security Update 2018-002 High Sierra, Security Update 2018-005 Sierra
CVE: CVE-2018-8779
Component: CVE-2018-8779
Apple
CVE-2018-8779: macOS High Sierra 10.13.6, Security Update 2018-004 Sierra, Security Update 2018-004 El Capitan
vendor_apple·2018-07-09·CVSS 7.5
CVE-2018-8779 [HIGH] CVE-2018-8779: macOS High Sierra 10.13.6, Security Update 2018-004 Sierra, Security Update 2018-004 El Capitan
Apple Security Update: About the security content of macOS High Sierra 10.13.6, Security Update 2018-004 Sierra, Security Update 2018-004 El Capitan
Product: macOS High Sierra 10.13.6, Security Update 2018-004 Sierra, Security Update 2018-004 El Capitan
CVE: CVE-2018-8779
Component: CVE-2018-8779
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2018-04-16·CVSS 7.5
CVE-2018-6914 [HIGH] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Several security issues were fixed in Ruby.
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to execute arbitrary code. (CVE-2018-6914)
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to access sensitive information. (CVE-2018-8778,
CVE-2018-8780)
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to connect to an unintended socket. (CVE-2018-8779)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
vendor_redhat·2018-03-28·CVSS 7.5
CVE-2018-8779 [HIGH] CWE-626 ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
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.
It was found that the UNIXSocket::open and UNIXServer::open ruby methods did not handle the NULL byte properly. An attacker, able to inject NULL bytes in the socket path, could possibly trigger an unspecified behavior of the ruby script.
Statement: This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6.
Mitigation: It is possible to test for presence of the NULL byte manually prior to call the affected methods.
Package: rh-ruby22-
VulDB
Ruby up to 2.2.9/2.3.6/2.4.3/2.5.0 UNIXServer.open/UNIXSocket.open Null Character input validation (RHSA-2018:3729 / Nessus ID 109284)
vuldb·2026-05-10·CVSS 7.5
CVE-2018-8779 [HIGH] Ruby up to 2.2.9/2.3.6/2.4.3/2.5.0 UNIXServer.open/UNIXSocket.open Null Character input validation (RHSA-2018:3729 / Nessus ID 109284)
A vulnerability described as critical has been identified in Ruby up to 2.2.9/2.3.6/2.4.3/2.5.0. Affected by this issue is the function UNIXServer.open/UNIXSocket.open. Executing a manipulation as part of Null Character can lead to improper input validation.
This vulnerability is handled as CVE-2018-8779. The attack can be executed remotely. There is not any exploit available.
Upgrading the affected component is recommended.
GHSA
GHSA-mwq4-948j-88c5: In Ruby before 2
ghsa_unreviewed·2022-05-14
CVE-2018-8779 [HIGH] CWE-20 GHSA-mwq4-948j-88c5: In Ruby before 2
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.
OSV
libtirpc vulnerabilities
osv·2018-09-05·CVSS 5.9
CVE-2016-4429 libtirpc vulnerabilities
libtirpc vulnerabilities
Aldy Hernandez discovered that libtirpc incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS.
(CVE-2016-4429)
It was discovered that libtirpc incorrectly handled certain inputs.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2018-14622)
It was discovered that libtirpc incorrectly handled certain strings.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS.
(CVE-2017-8779)
OSV
ruby1.9.1, ruby2.0, ruby2.3 vulnerabilities
osv·2018-04-16·CVSS 7.5
CVE-2018-6914 [HIGH] ruby1.9.1, ruby2.0, ruby2.3 vulnerabilities
ruby1.9.1, ruby2.0, ruby2.3 vulnerabilities
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to execute arbitrary code. (CVE-2018-6914)
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to access sensitive information. (CVE-2018-8778,
CVE-2018-8780)
It was discovered that Ruby incorrectly handled certain inputs. An attacker
could possibly use this to connect to an unintended socket. (CVE-2018-8779)
OSV
CVE-2018-8779: In Ruby before 2
osv·2018-04-03·CVSS 7.5
CVE-2018-8779 [HIGH] CVE-2018-8779: In Ruby before 2
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-8779 ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
bugzilla·2018-03-29·CVSS 7.5
CVE-2018-8779 [HIGH] CVE-2018-8779 ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
CVE-2018-8779 ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
UNIXServer.open accepts the path of the socket to be created at the first parameter. If the path contains NUL (\0) bytes, this method recognize that the path is completed before the NUL bytes. So, if a script accepts an external input as the argument of this method, the attacker can make the socket file in the unintentional path. And, UNIXSocket.open also accepts the path of the socket to be created at the first parameter without checking NUL bytes like UNIXServer.open. So, if a script accepts an external input as the argument of this method, the attacker can accepts the socket file in the unintentional path.
Affected versions:
Ruby 2.2 series: 2.2.9 and earlier
Ruby 2.3 series: 2.3.6 an
Bugzilla
CVE-2017-17742 CVE-2018-6914 CVE-2018-8777 CVE-2018-8778 CVE-2018-8779 CVE-2018-8780 ruby: various flaws [fedora-all]
bugzilla·2018-03-29·CVSS 5.3
CVE-2017-17742 [MEDIUM] CVE-2017-17742 CVE-2018-6914 CVE-2018-8777 CVE-2018-8778 CVE-2018-8779 CVE-2018-8780 ruby: various flaws [fedora-all]
CVE-2017-17742 CVE-2018-6914 CVE-2018-8777 CVE-2018-8778 CVE-2018-8779 CVE-2018-8780 ruby: various flaws [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this i
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlhttp://www.securityfocus.com/bid/103767http://www.securitytracker.com/id/1042004https://access.redhat.com/errata/RHSA-2018:3729https://access.redhat.com/errata/RHSA-2018:3730https://access.redhat.com/errata/RHSA-2018:3731https://access.redhat.com/errata/RHSA-2019:2028https://lists.debian.org/debian-lts-announce/2018/04/msg00023.htmlhttps://lists.debian.org/debian-lts-announce/2018/04/msg00024.htmlhttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlhttps://usn.ubuntu.com/3626-1/https://www.debian.org/security/2018/dsa-4259https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-unixsocket-cve-2018-8779/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.htmlhttp://www.securityfocus.com/bid/103767http://www.securitytracker.com/id/1042004https://access.redhat.com/errata/RHSA-2018:3729https://access.redhat.com/errata/RHSA-2018:3730https://access.redhat.com/errata/RHSA-2018:3731https://access.redhat.com/errata/RHSA-2019:2028https://lists.debian.org/debian-lts-announce/2018/04/msg00023.htmlhttps://lists.debian.org/debian-lts-announce/2018/04/msg00024.htmlhttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.htmlhttps://usn.ubuntu.com/3626-1/https://www.debian.org/security/2018/dsa-4259https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-unixsocket-cve-2018-8779/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
2018-04-03
Published