CVE-2018-8780
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
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 9.98% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 95.4% of scored records. A rank, not a probability.
- NVD base score
- 9.1 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2018-04-03 22:00Z8 YR AGO
- Last updated
- 2024-08-05 07:02Z2 YR AGO
- Reserved
- 2018-03-19
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
- Data version
- 5.1
- Document digest
- b06aef95f5ccf68a1fabbbea68c6cd59bb45611b9be6db35b5b3125aa00ae1c6
05 Affected products
06 References
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
- access.redhat.comRHSA-2018:3729https://access.redhat.com/errata/RHSA-2018:3729
- usn.ubuntu.comUSN-3626-1https://usn.ubuntu.com/3626-1/
- www.securitytracker.com1042004http://www.securitytracker.com/id/1042004
- access.redhat.comRHSA-2018:3730https://access.redhat.com/errata/RHSA-2018:3730
- lists.debian.org[debian-lts-announce] 20180423 [SECURITY] [DLA 1358-1] ruby1.9.1 security updatehttps://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
- access.redhat.comRHSA-2018:3731https://access.redhat.com/errata/RHSA-2018:3731
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/
- lists.debian.org[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security updatehttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- www.securityfocus.com103739http://www.securityfocus.com/bid/103739
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/
- www.debian.orgDSA-4259https://www.debian.org/security/2018/dsa-4259
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/
- lists.debian.org[debian-lts-announce] 20180423 [SECURITY] [DLA 1359-1] ruby1.8 security updatehttps://lists.debian.org/debian-lts-announce/2018/04/msg00024.html
- lists.opensuse.orgopenSUSE-SU-2019:1771http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- access.redhat.comRHSA-2019:2028https://access.redhat.com/errata/RHSA-2019:2028
- access.redhat.comRHSA-2020:0542https://access.redhat.com/errata/RHSA-2020:0542
- access.redhat.comRHSA-2020:0591https://access.redhat.com/errata/RHSA-2020:0591
- access.redhat.comRHSA-2020:0663https://access.redhat.com/errata/RHSA-2020:0663
07 Fixed in
Ubuntu 14.04 LTS
- ruby1.9.1 Fixed in 1.9.3.484-2ubuntu1.11
- ruby2.0 Fixed in 2.0.0.484-1ubuntu2.9
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- ruby2.3 Fixed in 2.3.1-2~16.04.9
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.