CVE-2018-8780

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.

Category

9.1
CVSS
Severity: Critical
CVSS 3.0 •
CVSS 2.0 •
EPSS 0.65%
Vendor Advisory redhat.com Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory debian.org Vendor Advisory opensuse.org Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory ruby-lang.org Vendor Advisory ruby-lang.org Vendor Advisory ruby-lang.org Vendor Advisory ruby-lang.org Vendor Advisory ruby-lang.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/ patch vendor advisory
https://access.redhat.com/errata/RHSA-2018:3729 third party advisory vendor advisory
https://usn.ubuntu.com/3626-1/ third party advisory vendor advisory
http://www.securitytracker.com/id/1042004 vdb entry third party advisory
https://access.redhat.com/errata/RHSA-2018:3730 third party advisory vendor advisory
https://lists.debian.org/debian-lts-announce/2018/04/msg00023.html third party advisory mailing list
https://access.redhat.com/errata/RHSA-2018:3731 third party advisory vendor advisory
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/ patch vendor advisory
https://www.ruby-lang.org/en/news/2018/03/28/poisoned-nul-byte-dir-cve-2018-8780/ vendor advisory
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html third party advisory mailing list
http://www.securityfocus.com/bid/103739 vdb entry third party advisory
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/ patch vendor advisory
https://www.debian.org/security/2018/dsa-4259 third party advisory vendor advisory
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/ patch vendor advisory
https://lists.debian.org/debian-lts-announce/2018/04/msg00024.html third party advisory mailing list
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html vendor advisory
https://access.redhat.com/errata/RHSA-2019:2028 vendor advisory
https://access.redhat.com/errata/RHSA-2020:0542 vendor advisory
https://access.redhat.com/errata/RHSA-2020:0591 vendor advisory
https://access.redhat.com/errata/RHSA-2020:0663 vendor advisory

Frequently Asked Questions

What is the severity of CVE-2018-8780?
CVE-2018-8780 has been scored as a critical severity vulnerability.
How to fix CVE-2018-8780?
To fix CVE-2018-8780, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2018-8780 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2018-8780 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.