All vulnerabilities

Servers and applications

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 attackers to create arbitrary directories or files via a .. (dot dot) in the prefix argument.

Severity
High 7.5
Published
3 Apr 2018
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
2.2.10, 2.3.7, 2.4.4, 2.5.1
Sources
NVD

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • From 2.2.0 before 2.2.10
  • From 2.3.0 before 2.3.7
  • From 2.4.0 before 2.4.4
  • From 2.5.0 before 2.5.1
  • Version 2.6.0-preview1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2018-6914
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2018-6914