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…
Priority MEDIUM 52CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 32 fixed, 6 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
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 Dir.open, Dir.new, Dir.entries and Dir.empty? methods do not check NULL characters. When using the corresponding method, unintentional directory traversal may be performed.
Why it matters now
EPSS 0.09982 95th percentileScored 2026-11-07
Fix Partial Red Hat: 10 advisoriesRed Hat: 32 fixed, 6 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 8
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | before 2.2.10; 2.3.0 to before 2.3.7; 2.4.0 to before 2.4.4; 2.5.0 to before 2.5.1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* | 2.6.0 preview1 | Vulnerable | ruby |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
- cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* Versions before 2.2.10; 2.3.0 to before 2.3.7; 2.4.0 to before 2.4.4; 2.5.0 to before 2.5.1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:* Versions 2.6.0 preview1 Vulnerable ·ruby
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
Remediation
Red Hat 10 advisories
- RHSA-2026:8838 Released 2026-04-17 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby4.0-4.0.0-33.3.hum1@aarch64, ruby4.0-4.0.0-33.3.hum1@src, ruby4.0-4.0.0-33.3.hum1@x86_64 +10
- RHSA-2026:7307 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.4-3.4.8-31.1.hum1@aarch64, ruby3.4-3.4.8-31.1.hum1@src, ruby3.4-3.4.8-31.1.hum1@x86_64 +10
- RHSA-2026:7305 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.3-3.3.10-23.1.hum1@aarch64, ruby3.3-3.3.10-23.1.hum1@src, ruby3.3-3.3.10-23.1.hum1@x86_64 +10
Show 7 more Red Hat advisories
- RHSA-2020:0663 Released 2020-03-03 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) ruby-2.0.0.648-36.el7_6, ruby-irb-2.0.0.648-36.el7_6, ruby-libs-2.0.0.648-36.el7_6 +6
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) ruby-devel-2.0.0.648-36.el7_6, ruby-doc-2.0.0.648-36.el7_6, ruby-tcltk-2.0.0.648-36.el7_6 +3
- Red Hat Enterprise Linux Server EUS (v. 7.6) ruby-2.0.0.648-36.el7_6, ruby-irb-2.0.0.648-36.el7_6, ruby-libs-2.0.0.648-36.el7_6 +7
- Red Hat Enterprise Linux Server Optional EUS (v. 7.6) ruby-devel-2.0.0.648-36.el7_6, ruby-doc-2.0.0.648-36.el7_6, ruby-tcltk-2.0.0.648-36.el7_6 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ruby-2.0.0.648-36.el7_6, ruby-irb-2.0.0.648-36.el7_6, ruby-libs-2.0.0.648-36.el7_6 +6
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) ruby-devel-2.0.0.648-36.el7_6, ruby-doc-2.0.0.648-36.el7_6, ruby-tcltk-2.0.0.648-36.el7_6 +3
- RHSA-2020:0591 Released 2020-02-25 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux Server AUS (v. 7.4) ruby-2.0.0.648-35.el7_4, ruby-irb-2.0.0.648-35.el7_4, ruby-libs-2.0.0.648-35.el7_4 +6
- Red Hat Enterprise Linux Server E4S (v. 7.4) ruby-2.0.0.648-35.el7_4, ruby-irb-2.0.0.648-35.el7_4, ruby-libs-2.0.0.648-35.el7_4 +6
- Red Hat Enterprise Linux Server Optional AUS (v. 7.4) ruby-devel-2.0.0.648-35.el7_4, ruby-doc-2.0.0.648-35.el7_4, ruby-tcltk-2.0.0.648-35.el7_4 +3
- Red Hat Enterprise Linux Server Optional E4S (v. 7.4) ruby-devel-2.0.0.648-35.el7_4, ruby-doc-2.0.0.648-35.el7_4, ruby-tcltk-2.0.0.648-35.el7_4 +3
- Red Hat Enterprise Linux Server Optional TUS (v. 7.4) ruby-devel-2.0.0.648-35.el7_4, ruby-doc-2.0.0.648-35.el7_4, ruby-tcltk-2.0.0.648-35.el7_4 +3
- Red Hat Enterprise Linux Server TUS (v. 7.4) ruby-2.0.0.648-35.el7_4, ruby-irb-2.0.0.648-35.el7_4, ruby-libs-2.0.0.648-35.el7_4 +6
- RHSA-2020:0542 Released 2020-02-19 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) ruby-2.0.0.648-35.el7_5, ruby-irb-2.0.0.648-35.el7_5, ruby-libs-2.0.0.648-35.el7_5 +6
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) ruby-devel-2.0.0.648-35.el7_5, ruby-doc-2.0.0.648-35.el7_5, ruby-tcltk-2.0.0.648-35.el7_5 +3
- Red Hat Enterprise Linux Server EUS (v. 7.5) ruby-2.0.0.648-35.el7_5, ruby-irb-2.0.0.648-35.el7_5, ruby-libs-2.0.0.648-35.el7_5 +7
- Red Hat Enterprise Linux Server Optional EUS (v. 7.5) ruby-devel-2.0.0.648-35.el7_5, ruby-doc-2.0.0.648-35.el7_5, ruby-tcltk-2.0.0.648-35.el7_5 +3
- RHSA-2019:2028 Released 2019-08-06 · Red Hat rating Moderateruby security update
- Red Hat Enterprise Linux Client (v. 7) ruby-2.0.0.648-36.el7, ruby-irb-2.0.0.648-36.el7, ruby-libs-2.0.0.648-36.el7 +6
- Red Hat Enterprise Linux Client Optional (v. 7) ruby-devel-2.0.0.648-36.el7, ruby-doc-2.0.0.648-36.el7, ruby-tcltk-2.0.0.648-36.el7 +3
- Red Hat Enterprise Linux ComputeNode (v. 7) ruby-2.0.0.648-36.el7, ruby-irb-2.0.0.648-36.el7, ruby-libs-2.0.0.648-36.el7 +6
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) ruby-devel-2.0.0.648-36.el7, ruby-doc-2.0.0.648-36.el7, ruby-tcltk-2.0.0.648-36.el7 +3
- Red Hat Enterprise Linux Server (v. 7) ruby-2.0.0.648-36.el7, ruby-irb-2.0.0.648-36.el7, ruby-libs-2.0.0.648-36.el7 +7
- Red Hat Enterprise Linux Server Optional (v. 7) ruby-devel-2.0.0.648-36.el7, ruby-doc-2.0.0.648-36.el7, ruby-tcltk-2.0.0.648-36.el7 +3
- Red Hat Enterprise Linux Workstation (v. 7) ruby-2.0.0.648-36.el7, ruby-irb-2.0.0.648-36.el7, ruby-libs-2.0.0.648-36.el7 +6
- Red Hat Enterprise Linux Workstation Optional (v. 7) ruby-devel-2.0.0.648-36.el7, ruby-doc-2.0.0.648-36.el7, ruby-tcltk-2.0.0.648-36.el7 +3
- RHSA-2018:3731 Released 2018-11-29 · Red Hat rating Importantrh-ruby25-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby25-ruby-2.5.3-6.el7, rh-ruby25-ruby-devel-2.5.3-6.el7, rh-ruby25-ruby-doc-2.5.3-6.el7 +17
- RHSA-2018:3730 Released 2018-11-29 · Red Hat rating Importantrh-ruby24-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby24-ruby-2.4.5-91.el6, rh-ruby24-ruby-devel-2.4.5-91.el6, rh-ruby24-ruby-doc-2.4.5-91.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby24-ruby-2.4.5-91.el6, rh-ruby24-ruby-devel-2.4.5-91.el6, rh-ruby24-ruby-doc-2.4.5-91.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby24-ruby-2.4.5-91.el7, rh-ruby24-ruby-devel-2.4.5-91.el7, rh-ruby24-ruby-doc-2.4.5-91.el7 +17
- RHSA-2018:3729 Released 2018-11-29 · Red Hat rating Importantrh-ruby23-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby23-ruby-2.3.8-69.el6, rh-ruby23-ruby-devel-2.3.8-69.el6, rh-ruby23-ruby-doc-2.3.8-69.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby23-ruby-2.3.8-69.el6, rh-ruby23-ruby-devel-2.3.8-69.el6, rh-ruby23-ruby-doc-2.3.8-69.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby23-ruby-2.3.8-69.el7, rh-ruby23-ruby-devel-2.3.8-69.el7, rh-ruby23-ruby-doc-2.3.8-69.el7 +16
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix yet |
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Hardened Images | Affected | No fix yet |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) | Fixed | RHSA-2020:0542 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) | Fixed | RHSA-2020:0663 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) | Fixed | RHSA-2020:0542 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) | Fixed | RHSA-2020:0663 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux Server AUS (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Server E4S (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2020:0542 |
| Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2020:0663 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux Server Optional AUS (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Server Optional E4S (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.5) | Fixed | RHSA-2020:0542 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.6) | Fixed | RHSA-2020:0663 |
| Red Hat Enterprise Linux Server Optional TUS (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Server TUS (v. 7.4) | Fixed | RHSA-2020:0591 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2019:2028 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2020:0663 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2020:0663 |
| Red Hat Hardened Images | Fixed | RHSA-2026:7305, RHSA-2026:7307, RHSA-2026:8838 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:3729, RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:3729, RHSA-2018:3730 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:3729, RHSA-2018:3730, RHSA-2018:3731 |
Not affected: 2 products
- Red Hat Enterprise Linux 8
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2018-8780
- 2026-10-03 Alias added: GHSA-fphx-j9v2-w2cx
- 2026-11-02 Affected versions changed · Red Hat
References
Patch 4
Advisory 14
- RHSA-2018:3729
- USN-3626-1
- RHSA-2018:3730
- [debian-lts-announce] 20180423 [SECURITY] [DLA 1358-1] ruby1.9.1 security update
- RHSA-2018:3731
- https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update
- DSA-4259
- [debian-lts-announce] 20180423 [SECURITY] [DLA 1359-1] ruby1.8 security update
- openSUSE-SU-2019:1771
- RHSA-2019:2028
- RHSA-2020:0542
- RHSA-2020:0591
- RHSA-2020:0663
Sources
- CVE-2018-8780 · CVE Program
- CVE-2018-8780 · NVD
- FIRST EPSS
- GHSA-fphx-j9v2-w2cx · GitHub Advisory Database · CC BY 4.0
- CVE-2018-8780 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences