CVE-2018-6914

Description

Directory traversal vulnerability in the Dir.mktmpdir method in the tmpdir library 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 might allow attackers to create arbitrary directories or files via a .. (dot dot) in the prefix argument.

Category

7.5
CVSS
Severity: High
CVSS 3.0 •
CVSS 2.0 •
EPSS 1.61% Top 20%
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 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 release notes
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 third party advisory vdb entry
http://www.securityfocus.com/bid/103686 third party advisory vdb entry
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 release notes
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html third party advisory mailing list
https://www.ruby-lang.org/en/news/2018/03/28/unintentional-file-and-directory-creation-with-directory-traversal-cve-2018-6914/ vendor advisory
https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/ patch release notes
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 release notes
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

Frequently Asked Questions

What is the severity of CVE-2018-6914?
CVE-2018-6914 has been scored as a high severity vulnerability.
How to fix CVE-2018-6914?
To fix CVE-2018-6914, 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-6914 being actively exploited in the wild?
It is possible that CVE-2018-6914 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% 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.