Path traversal in Ruby - CVE-2018-8780

 

Path traversal in Ruby - CVE-2018-8780

Published: April 5, 2018


Vulnerability identifier: #VU11542
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-8780
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to obtain potentially sensitive information and write arbitrary files on the target system.

The weakness exists in the Dir.open, Dir.new, Dir.entries and Dir.empty? methods due to improper checking of NULL characters. A remote attacker can trigger the unintentional directory traversal.

Affected software

Ruby
Debian Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for Power
macOS
Slackware Linux
Opensuse
Fedora
EMC Integrated Data Protection Appliance
ruby (Alpine package)
ruby
Dell EMC Data Protection Search

How to mitigate CVE-2018-8780

Update to versions 2.2.10, 2.3.7, 2.4.4 or 2.5.1.

EMC Integrated Data Protection Appliance - update to 2.7.1
ruby (Alpine package) - update to 2.3.7-r0
Dell EMC Data Protection Search - update to 19.6.0
ruby - addressed in versions 2.4.4-88.fc26, 2.4.4-88.fc27, 2.4.4-89.fc27, 2.5.1-92.fc28

External References

Related Security Bulletins