CVE-2018-8780

critical
New! CVE Severity Now Using CVSS v3

The calculated severity for CVEs has been updated to use CVSS v3 by default. CVEs that do not have a CVSS v3 score will fall back CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

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

http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html

http://www.securityfocus.com/bid/103739

http://www.securitytracker.com/id/1042004

https://access.redhat.com/errata/RHSA-2018:3729

https://access.redhat.com/errata/RHSA-2018:3730

https://access.redhat.com/errata/RHSA-2018:3731

https://access.redhat.com/errata/RHSA-2019:2028

https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html

https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html

https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html

https://usn.ubuntu.com/3626-1/

https://www.debian.org/security/2018/dsa-4259

https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/

https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/

https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/

https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/

https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/

Details

Source: MITRE

Published: 2018-04-03

Updated: 2019-07-21

Type: CWE-22

Risk Information

CVSS v2

Base Score: 7.5

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 10

Severity: HIGH

CVSS v3

Base Score: 9.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Impact Score: 5.2

Exploitability Score: 3.9

Severity: CRITICAL

Tenable Plugins

View all (29 total)

IDNameProductFamilySeverity
137599SUSE SLES12 Security Update : ruby2.1 (SUSE-SU-2020:1570-1)NessusSuSE Local Security Checks
high
134261RHEL 7 : ruby (RHSA-2020:0663)NessusRed Hat Local Security Checks
critical
134063RHEL 7 : ruby (RHSA-2020:0591)NessusRed Hat Local Security Checks
critical
133785RHEL 7 : ruby (RHSA-2020:0542)NessusRed Hat Local Security Checks
critical
132492NewStart CGSL CORE 5.05 / MAIN 5.05 : ruby Multiple Vulnerabilities (NS-SA-2019-0245)NessusNewStart CGSL Local Security Checks
critical
131412NewStart CGSL CORE 5.04 / MAIN 5.04 : ruby Multiple Vulnerabilities (NS-SA-2019-0221)NessusNewStart CGSL Local Security Checks
critical
128332CentOS 7 : ruby (CESA-2019:2028)NessusCentOS Local Security Checks
critical
128290Amazon Linux 2 : ruby (ALAS-2019-1276)NessusAmazon Linux Local Security Checks
critical
128260Scientific Linux Security Update : ruby on SL7.x x86_64 (20190806)NessusScientific Linux Local Security Checks
critical
127649RHEL 7 : ruby (RHSA-2019:2028)NessusRed Hat Local Security Checks
critical
126904openSUSE Security Update : ruby-bundled-gems-rpmhelper / ruby2.5 (openSUSE-2019-1771)NessusSuSE Local Security Checks
high
126617SUSE SLED15 / SLES15 Security Update : ruby-bundled-gems-rpmhelper, ruby2.5 (SUSE-SU-2019:1804-1)NessusSuSE Local Security Checks
high
124931EulerOS Virtualization 3.0.1.0 : ruby (EulerOS-SA-2019-1428)NessusHuawei Local Security Checks
critical
700517macOS 10.13.x < 10.13.6 Multiple VulnerabilitiesNessus Network MonitorOperating System Detection
critical
120846Fedora 28 : ruby (2018-dd8162c004)NessusFedora Local Security Checks
critical
118573macOS and Mac OS X Multiple Vulnerabilities (Security Update 2018-005)NessusMacOS X Local Security Checks
critical
117584EulerOS Virtualization 2.5.1 : ruby (EulerOS-SA-2018-1275)NessusHuawei Local Security Checks
critical
111468Debian DSA-4259-1 : ruby2.3 - security updateNessusDebian Local Security Checks
critical
111137macOS 10.13.x < 10.13.6 Multiple VulnerabilitiesNessusMacOS X Local Security Checks
critical
111136macOS and Mac OS X Multiple Vulnerabilities (Security Update 2018-004)NessusMacOS X Local Security Checks
critical
111081Debian DLA-1421-1 : ruby2.1 security updateNessusDebian Local Security Checks
critical
110871EulerOS 2.0 SP3 : ruby (EulerOS-SA-2018-1207)NessusHuawei Local Security Checks
critical
110870EulerOS 2.0 SP2 : ruby (EulerOS-SA-2018-1206)NessusHuawei Local Security Checks
critical
110389Fedora 27 : ruby (2018-a459acd54b)NessusFedora Local Security Checks
critical
109284Debian DLA-1359-1 : ruby1.8 security updateNessusDebian Local Security Checks
critical
109283Debian DLA-1358-1 : ruby1.9.1 security updateNessusDebian Local Security Checks
critical
108846Amazon Linux AMI : ruby20 / ruby22,ruby23,ruby24 (ALAS-2018-983)NessusAmazon Linux Local Security Checks
critical
108739FreeBSD : ruby -- multiple vulnerabilities (eb69bcf2-18ef-4aa2-bb0c-83b263364089)NessusFreeBSD Local Security Checks
critical
108725Slackware 14.2 / current : ruby (SSA:2018-088-01)NessusSlackware Local Security Checks
critical