CVE-2018-6198 Path traversal in n/a

Medium 4.7 Published Updated

A local attacker can exploit improper temporary file handling to overwrite arbitrary files via symlink attacks when the configuration directory is unwritable.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-6198?

CVE-2018-6198 is a medium-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 25 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.

Weakness: CWE-59

Which versions are affected by CVE-2018-6198?

It affects 2 products.

Products include Canonical Ubuntu Linux, Tats W3m.

How do I fix CVE-2018-6198?

Apply the vendor's patch.

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

Is CVE-2018-6198 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-6198, DEBIAN-CVE-2018-6198, GHSA-gvrg-2xvq-7j38, UBUNTU-CVE-2018-6198.

Is CVE-2018-6198 in your software?

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

Check your SBOMs for free