CVE-2018-16867 Path traversal in QEMU:

High 7.0 Published Updated

A path traversal flaw in QEMU's MTP implementation allows guest users to read or write arbitrary host files, potentially causing denial of service or code execution.

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-16867?

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

Official description

A flaw was found in qemu Media Transfer Protocol (MTP) before version 3.1.0. A path traversal in the in usb_mtp_write_data function in hw/usb/dev-mtp.c due to an improper filename sanitization. When the guest device is mounted in read-write mode, this allows to read/write arbitrary files which may lead do DoS scenario OR possibly lead to code execution on the host.

Weakness: CWE-362

Which versions are affected by CVE-2018-16867?

It affects 3 products.

Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Qemu Qemu.

How do I fix CVE-2018-16867?

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-16867 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-16867, GHSA-6ch3-xhrw-w89m.

Is CVE-2018-16867 in your software?

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

Check your SBOMs for free