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.
CVE-2018-8780
Score 9.1 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-14. NVD baseline CVSS 9.1; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.1
- EG Score
- 9.1(medium)
- EPSS
- 95.1%
- KEV
- Not listed
Published
April 3, 2018
Last Modified
November 21, 2024
Advisory Details (9)
Auto-updated Jul 20, 2026Affected: Red Hat Enterprise Linux 7.6 Extended Update Support.
https://access.redhat.com/errata/RHSA-2020:0663Affected: Red Hat Enterprise Linux 7.4 Advanced Update Support, Red Hat Enterprise Linux 7.4 Telco Extended Update Support, and Red Hat
https://access.redhat.com/errata/RHSA-2020:0591Affected: Red Hat Enterprise Linux 7.5 Extended Update Support.
https://access.redhat.com/errata/RHSA-2020:0542Affected: Red Hat Enterprise Linux 7.
https://access.redhat.com/errata/RHSA-2019:2028Vendor Advisories for CVE-2018-8780(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:8838Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:7307Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
- RHSA-2026:7305Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Patch Availability(11)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | ruby2.3-tcltk (2.3.1-2~16.04.9) @ xenial | 2026-05-28 | ubuntu |
| redhat | ruby4-0-main-4.0.0-33.3.hum1 | 2026-04-17 | redhat |
| redhat | ruby3-4-main-3.4.8-31.1.hum1 | 2026-04-09 | redhat |
| redhat | ruby3-3-main-3.3.10-23.1.hum1 | 2026-04-09 | redhat |
| redhat | ruby-0:2.0.0.648-36.el7_6 | 2020-03-03 | redhat |
| redhat | ruby-0:2.0.0.648-35.el7_4 | 2020-02-25 | redhat |
| redhat | ruby-0:2.0.0.648-35.el7_5 | 2020-02-19 | redhat |
| redhat | ruby-0:2.0.0.648-36.el7 | 2019-08-06 | redhat |
| redhat | rh-ruby23-ruby-0:2.3.8-69.el7 | 2018-11-29 | redhat |
| redhat | rh-ruby24-ruby-0:2.4.5-91.el7 | 2018-11-29 | redhat |
| redhat | rh-ruby25-ruby-0:2.5.3-6.el7 | 2018-11-29 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(8)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2018:3729MODERATE2018-03-28
RHSA-2018:3729 — Moderate
- Red HatRHSA-2018:3730MODERATE2018-03-28
RHSA-2018:3730 — Moderate
- Red HatRHSA-2018:3731MODERATE2018-03-28
RHSA-2018:3731 — Moderate
- Red HatRHSA-2019:2028MODERATE2018-03-28
RHSA-2019:2028 — Moderate
- Red HatRHSA-2020:0542MODERATE2018-03-28
RHSA-2020:0542 — Moderate
- Red HatRHSA-2020:0591MODERATE2018-03-28
RHSA-2020:0591 — Moderate
- Red HatRHSA-2020:0663MODERATE2018-03-28
RHSA-2020:0663 — Moderate
- UbuntuUSN-3626-1MEDIUM
Ruby vulnerabilities
Data Freshness Timeline
(refreshed 12× in last 7d / 43× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 22:17 UTCEG score recompute
- 2026-07-22 14:05 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:18 UTCOSV refresh
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-13 06:10 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-08 15:11 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
Show 68 moreShow fewer
- 2026-07-04 10:56 UTCOSV refresh
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 22:39 UTCOSV refresh
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:19 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 09:42 UTCEG score recompute
- 2026-05-28 09:42 UTCVendor advisory
- 2026-05-28 09:42 UTCGHSA enrichment
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-23 20:05 UTCOSV refresh
Frequently asked(5)
What is CVE-2018-8780?
When was CVE-2018-8780 disclosed?
Is CVE-2018-8780 actively exploited?
What is the CVSS score of CVE-2018-8780?
How do I remediate CVE-2018-8780?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2018-8780
Is Your Infrastructure Affected by CVE-2018-8780?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.