Directory Traversal Affecting ruby2.3 package, versions <2.3.3-1+deb9u3
Snyk CVSS
Attack Complexity
Low
Confidentiality
High
Integrity
High
Threat Intelligence
EPSS
0.23% (61st
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN9-RUBY23-308575
- published 3 Apr 2018
- disclosed 3 Apr 2018
How to fix?
Upgrade Debian:9
ruby2.3
to version 2.3.3-1+deb9u3 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream ruby2.3
package and not the ruby2.3
package as distributed by Debian
.
See How to fix?
for Debian:9
relevant fixed versions and status.
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
- https://security-tracker.debian.org/tracker/CVE-2018-8780
- 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/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-8780
- https://www.debian.org/security/2018/dsa-4259
- 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
- http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- https://access.redhat.com/errata/RHSA-2019:2028
- https://access.redhat.com/errata/RHSA-2020:0542
- https://access.redhat.com/errata/RHSA-2020:0591
- https://access.redhat.com/errata/RHSA-2020:0663
- https://access.redhat.com/errata/RHSA-2018:3729
- https://access.redhat.com/errata/RHSA-2018:3730
- https://access.redhat.com/errata/RHSA-2018:3731
- http://www.securityfocus.com/bid/103739
- http://www.securitytracker.com/id/1042004
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2018-8780
- https://usn.ubuntu.com/3626-1/