CVE-2018-8780

Advisory lineage Upstream: 0 Downstream: 21
Modified
Published: 03 Apr 2018, 22:00
Last modified:05 Aug 2024, 07:02

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.1 CRITICAL
v3.0 (nvd)
EPSS Score
1.74% LOW
2% probability +0.39%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

03 Apr 2018, 22:00
Published
Vulnerability first disclosed
05 Aug 2024, 07:02
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.0CRITICALScore: 9.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • v2.0HIGHScore: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 1.74% Percentile: 83%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • canonicalubuntu_linux

    14.04 | 16.04 | 17.10

  • debiandebian_linux

    7.0 | 8.0 | 9.0

  • ruby-langruby

    < 2.2.10 | ≥ 2.3.0, < 2.3.7 | ≥ 2.4.0, < 2.4.4 | ≥ 2.5.0, < 2.5.1 | 2.6.0:preview1

References (20)