Directory Traversal Affecting qemu-project/qemu package, versions [,3.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.06% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-QEMUPROJECTQEMU-3007115
  • published26 Jan 2022
  • disclosed12 Dec 2018
  • creditUnknown

Introduced: 12 Dec 2018

CVE-2018-16867  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade qemu-project/qemu to version 3.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Directory Traversal. 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.

CVSS Scores

version 3.1