CVE-2018-6914
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
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 10.15% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 95.4% of scored records. A rank, not a probability.
- NVD base score
- 7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Low. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2018-04-03 22:00Z8 YR AGO
- Last updated
- 2024-08-05 06:17Z2 YR AGO
- Reserved
- 2018-02-12
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
- Data version
- 5.1
- Document digest
- b469afd7c762c08c3bb62855cbf3fe27f16625aa9ebe7e9b87dd7060518b449a
05 Affected products
06 References
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/
- access.redhat.comRHSA-2018:3729https://access.redhat.com/errata/RHSA-2018:3729
- usn.ubuntu.comUSN-3626-1https://usn.ubuntu.com/3626-1/
- www.securitytracker.com1042004http://www.securitytracker.com/id/1042004
- www.securityfocus.com103686http://www.securityfocus.com/bid/103686
- access.redhat.comRHSA-2018:3730https://access.redhat.com/errata/RHSA-2018:3730
- lists.debian.org[debian-lts-announce] 20180423 [SECURITY] [DLA 1358-1] ruby1.9.1 security updatehttps://lists.debian.org/debian-lts-announce/2018/04/msg00023.html
- access.redhat.comRHSA-2018:3731https://access.redhat.com/errata/RHSA-2018:3731
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-3-7-released/
- lists.debian.org[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security updatehttps://lists.debian.org/debian-lts-announce/2018/07/msg00012.html
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/unintentional-file-and-directory-creation-with-directory-traversal-cve-2018-6914/
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-4-4-released/
- www.debian.orgDSA-4259https://www.debian.org/security/2018/dsa-4259
- www.ruby-lang.orghttps://www.ruby-lang.org/en/news/2018/03/28/ruby-2-2-10-released/
- lists.debian.org[debian-lts-announce] 20180423 [SECURITY] [DLA 1359-1] ruby1.8 security updatehttps://lists.debian.org/debian-lts-announce/2018/04/msg00024.html
- lists.opensuse.orgopenSUSE-SU-2019:1771http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html
- access.redhat.comRHSA-2019:2028https://access.redhat.com/errata/RHSA-2019:2028
07 Fixed in
Ubuntu 14.04 LTS
- ruby1.9.1 Fixed in 1.9.3.484-2ubuntu1.11
- ruby2.0 Fixed in 2.0.0.484-1ubuntu2.9
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- ruby2.3 Fixed in 2.3.1-2~16.04.9
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.