CVE-2018-6914 Path traversal in n/a

High 7.5 Published Updated

Attackers can create arbitrary directories or files via dot-dot sequences in the prefix argument of Ruby's Dir.mktmpdir method.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-6914?

CVE-2018-6914 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 3 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2018-6914?

It affects 4 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Redhat Enterprise Linux, Ruby-Lang Ruby.

How do I fix CVE-2018-6914?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-6914 being exploited?

There is no known exploitation of CVE-2018-6914 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-6914, CLEANSTART-2026-BJ91988, GHSA-wpg3-wgm5-rv8w, UBUNTU-CVE-2018-6914.

Is CVE-2018-6914 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free