BreachSpiderVerified, not vibes

CVE-2018-12617 in Canonical Ubuntu Linux and 2 more products

High 7.5 Public exploit reported Fix available

qmp_guest_file_read in qga/commands-posix.c and qga/commands-win32.c in qemu-ga (aka QEMU Guest Agent) in QEMU 2.12.50 has an integer overflow causing a g_malloc0() call to trigger a segmentation fault when trying to allocate a large memory chunk. The vulnerability can be exploited by sending a crafted QMP command (...

Affects 3 products from 3 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS24.4%
EPSS percentile98th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 14.04 16.04 18.04 18.10
Debian Debian Linux 8.0 9.0
Qemu Qemu ≤ 2.12.50

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitReported · reference

Official description

qmp_guest_file_read in qga/commands-posix.c and qga/commands-win32.c in qemu-ga (aka QEMU Guest Agent) in QEMU 2.12.50 has an integer overflow causing a g_malloc0() call to trigger a segmentation fault when trying to allocate a large memory chunk. The vulnerability can be exploited by sending a crafted QMP command (including guest-file-read with a large count value) to the agent via the listening socket.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2018-12617
BreachSpider IDBS-2018-GLOBAL-158318-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2018-06-21
Last modified2024-11-21
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-190: Integer Overflow or Wraparound

Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.

Related attack patterns (CAPEC)

CAPEC-92 Forced Integer Overflow via CWE-190

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2018-12617 in QEMU Guest Agent (qemu-ga) versions up to 2.12.50h involves an integer overflow in the qmp_guest_file_read function, leading to a segmentation fault due to an excessive memory allocation request.

An attacker can exploit this vulnerability by sending a specially crafted QMP command, specifically the guest-file-read command with a large count value, to the QEMU Guest Agent via its listening interface.

Questions

What is CVE-2018-12617?

CVE-2018-12617 in QEMU Guest Agent (qemu-ga) versions up to 2.12.50h involves an integer overflow in the qmp_guest_file_read function, leading to a segmentation fault due to an excessive memory allocation request.

What is the CVSS score for CVE-2018-12617?

CVE-2018-12617 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 24.4%.

Is CVE-2018-12617 actively exploited?

Public exploit available for CVE-2018-12617. Exploitation risk elevated.

How do I remediate CVE-2018-12617?

Priority: HIGH.

What systems are affected by CVE-2018-12617?

CVE-2018-12617 affects Canonical Ubuntu Linux; Debian Debian Linux; Qemu Qemu.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.