CVE-2018-8780

Severity CVSS v4.0:
Pending analysis
Type:
CWE-22 Path Traversal
Publication date:
03/04/2018
Last modified:
21/07/2019

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.2.10 (excluding)
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.3.0 (including) 2.3.7 (excluding)
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.4.0 (including) 2.4.4 (excluding)
cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* 2.5.0 (including) 2.5.1 (excluding)
cpe:2.3:a:ruby-lang:ruby:2.6.0:preview1:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*