Path Traversal in Ruby-Lang Ruby

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 using the corresponding method, unintentional directory traversal may be performed.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

EPSS exploit prediction

EPSS: 0.100 (95.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 96th percentile — 95.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2018-8780: held from 0.097 to 0.100.

EPSS over last 30 days · oldest: 0.097 · newest: 0.100 · change: +0.003

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2018-8780?
CVE-2018-8780 is a critical-severity vulnerability in Ruby-Lang Ruby, classified under Path Traversal. CVSS score: 9.1/10. Published 2018-04-03.
How severe is CVE-2018-8780?
Critical severity. CVSS v3 base score is 9.1 out of 10.
Is CVE-2018-8780 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.