Vulnerabilities · 2018 · Ruby-lang
CVE-2018-6914
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby, Ubuntu Linux, Debian Linux, Enterprise Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2018/03/28/unintentional-file-and-directory-creation-with-direct · Vendor Advisory
- www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/ · Patch
- www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/ · Patch
- www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/ · Patch
- www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/ · Patch
- www.securityfocus.com/bid/103686 · Third Party Advisory
- www.securitytracker.com/id/1042004 · Third Party Advisory
- access.redhat.com/errata/RHSA-2018:3729 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-6914
- cve.org/CVERecord?id=CVE-2018-6914
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.