CVE-2018-8780: Ruby - Path Traversal
- Cve: CVE-2018-8780
- Name: Ruby - Path Traversal
- 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 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.
- Impact: Attackers can perform directory traversal, potentially accessing sensitive files outside intended directories.
- Remediation: Update to Ruby 2.2.10, 2.3.7, 2.4.4, 2.5.1, or later versions.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.09982
- Epss percentile: 0.95721
- Assignee: [email protected]
- Published at: 2018-04-03T22:29:00Z
- Age in days: 3157
- Modified at: 2026-06-17T02:05:22Z
- Patch available: yes
- References total: 20
- Products total: 3
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-8780
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Hackerone
- Reports: 1
- Rank: 5193
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/ | Patch, Vendor Advisory |
| https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/ | Patch, Vendor Advisory |
| https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/ | Patch, Vendor Advisory |
| https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/ | Patch, Vendor Advisory |
| https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/ | Vendor Advisory |
| http://www.securityfocus.com/bid/103739 | Third Party Advisory, VDB Entry |
| http://www.securitytracker.com/id/1042004 | Third Party Advisory, VDB Entry |
| https://access.redhat.com/errata/RHSA-2018:3729 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:3730 | Third Party Advisory |
| https://access.redhat.com/errata/RHSA-2018:3731 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| ruby-lang:ruby | = 2.6.0 preview1; >= 2.5.0, < 2.5.1; >= 2.4.0, < 2.4.4; >= 2.3.0, < 2.3.7; < 2.2.10 | /v1/products/ruby-lang/ruby |
| debian:debian_linux | = 9.0, = 8.0, = 7.0 | /v1/products/debian/debian_linux |
| canonical:ubuntu_linux | = 17.10, = 16.04, = 14.04 | /v1/products/canonical/ubuntu_linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 21109361
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since