ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket
Published Apr 3, 2018
7.5
HIGHCVSS 3.0
EPSS 6.90%
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, the UNIXServer.open and UNIXSocket.open methods are not checked for null characters. It may be connected to an unintended socket.
Affected products
No data.
Configuration 1
Configuration 2
- 14.04
- 16.04
- 17.10
Configuration 3
- 7.0
- 8.0
- 9.0
No data.
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-36.el7
Fixed · RHSA-2019:2028
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby23-ruby-0:2.3.8-69.el6
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.5-91.el6
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby23-ruby-0:2.3.8-69.el7
Fixed · RHSA-2018:3729
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby24-ruby-0:2.4.5-91.el7
Fixed · RHSA-2018:3730
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-ruby25-ruby-0:2.5.3-6.el7
Fixed · RHSA-2018:3731
CloudForms Management Engine 5
rh-ruby22-ruby
Affected
CloudForms Management Engine 5
ruby-200-ruby
Affected
Red Hat Enterprise Linux 5
ruby
Not affected
Red Hat Enterprise Linux 6
ruby
Not affected
Red Hat Enterprise Linux 8
ruby
Not affected
Red Hat Software Collections
rh-ruby22-ruby
Will not fix
Red Hat Subscription Asset Manager
ruby193-ruby
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-36.el7 | Fixed | RHSA-2019:2028 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby23-ruby-0:2.3.8-69.el6 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.5-91.el6 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby23-ruby-0:2.3.8-69.el7 | Fixed | RHSA-2018:3729 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby24-ruby-0:2.4.5-91.el7 | Fixed | RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-ruby25-ruby-0:2.5.3-6.el7 | Fixed | RHSA-2018:3731 |
| CloudForms Management Engine 5 | rh-ruby22-ruby | Affected | n/a |
| CloudForms Management Engine 5 | ruby-200-ruby | Affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 6 | ruby | Not affected | n/a |
| Red Hat Enterprise Linux 8 | ruby | Not affected | n/a |
| Red Hat Software Collections | rh-ruby22-ruby | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6.
Red Hat mitigation
It is possible to test for presence of the NULL byte manually prior to call the affected methods.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (26 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.90% (0.06896) | 93.88th | v5 (v2026.06.15) |
| Jun 15, 2026 | 7.17% (0.07169) | 93.46th | v5 (v2026.06.15) |
| May 31, 2025 | 1.42% (0.01422) | 79.62th | v4 (v2025.03.14) |
| May 30, 2025 | 3.00% (0.02997) | 85.90th | v4 (v2025.03.14) |
| Apr 13, 2025 | 1.49% (0.01492) | 79.47th | v4 (v2025.03.14) |
| Apr 12, 2025 | 3.00% (0.02997) | 85.43th | v4 (v2025.03.14) |
| Mar 30, 2025 | 1.85% (0.01851) | 81.40th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.65% (0.03648) | 79.52th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.62% (0.02624) | 84.66th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.38% (0.00379) | 73.75th | v3 (v2023.03.01) |
| Jul 7, 2024 | 0.38% (0.00379) | 73.08th | v3 (v2023.03.01) |
| May 29, 2024 | 0.37% (0.00374) | 72.67th | v3 (v2023.03.01) |
| Apr 18, 2024 | 0.33% (0.00332) | 70.84th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.47% (0.00471) | 74.88th | v3 (v2023.03.01) |
| Oct 4, 2023 | 0.47% (0.00471) | 72.76th | v3 (v2023.03.01) |
| Aug 25, 2023 | 0.41% (0.00412) | 70.65th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.46% (0.00458) | 71.89th | v3 (v2023.03.01) |
| Mar 28, 2023 | 0.37% (0.00373) | 68.40th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.41% (0.00408) | 69.75th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Apr 1, 2022 | 2.69% (0.02686) | 81.17th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 3.68% (0.03679) | 72.20th | v1 |
| Jan 6, 2022 | 3.68% (0.03679) | 71.95th | v1 |
| Sep 1, 2021 | 3.68% (0.03679) | 82.80th | v1 |
| Apr 14, 2021 | 3.68% (0.03679) | 0.00th | v1 |
References (21)
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html vendor-advisoryx_refsource_SUSE
- http://www.securityfocus.com/bid/103767 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042004 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:3729 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3730 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3731 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2028 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-8779 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1561948 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-8779
- https://usn.ubuntu.com/3626-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-8779
- https://www.debian.org/security/2018/dsa-4259 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-unixsocket-cve-2018-8779/ x_refsource_CONFIRMVendor Advisory
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/ x_refsource_CONFIRMPatchVendor Advisory
- https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/ x_refsource_CONFIRMPatchVendor Advisory
Change history (0)
No recorded changes yet.