CVE-2018-8780

CRITICAL

Ruby <2.2.10-2.6.0 - Path Traversal

Title source: llm
STIX 2.1

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.

References (20)

Core 20
Core References
Patch, Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3729
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3626-1/
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1042004
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3730
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3731
Patch, Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/103739
Patch, Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2018/dsa-4259
Patch, Vendor Advisory x_refsource_confirm
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2028
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2020:0542
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2020:0591
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2020:0663

Scores

CVSS v3 9.1
EPSS 0.0179
EPSS Percentile 83.0%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Details

CWE
CWE-22
Status published
Products (8)
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 17.10
debian/debian_linux 7.0
debian/debian_linux 8.0
debian/debian_linux 9.0
ruby-lang/ruby 2.6.0 preview1
ruby-lang/ruby < 2.2.10
Published Apr 03, 2018
Tracked Since Feb 18, 2026