Glances: Command Injection via KVM/QEMU VM Domain Names in glances/plugins/vms/engines/virsh.py
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.5, the Glances KVM/QEMU monitoring engine (glances/plugins/vms/engines/virsh.py) passes VM domain names, read directly from virsh list --all output, into f-string command templates that are processed by secure_popen(). secure_popen() is explicitly designed to interpret &&, |, and > as shell operators. Because domain names are never sanitised before interpolation, any user with the ability to create or rename a KVM/QEMU virtual machine can execute arbitrary commands as the OS user running Glances — commonly root on hypervisor hosts. This vulnerability is fixed in 4.5.5.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-46606
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:46 UTC · Revision 1
Source evidence
Glances: Command Injection via KVM/QEMU VM Domain Names in glances/plugins/vms/engines/virsh.py
core-osv · Original sourcePublished 25 Jun 2026, 18:02 UTC
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.5, the Glances KVM/QEMU monitoring engine (glances/plugins/vms/engines/virsh.py) passes VM domain names, read directly from virsh list --all output, into f-string command templates that are processed by secure_popen(). secure_popen() is explicitly designed to interpret &&, |, and > as shell operators. Because domain names are never sanitised before interpolation, any user with the ability to create or rename a KVM/QEMU virtual machine can execute arbitrary commands as the OS user running Glances — commonly root on hypervisor hosts. This vulnerability is fixed in 4.5.5.
osv:CVE-2026-46606
Complete source record
{
"id": "918942e4a716301aba168bd3bf213fa40135256910be4c58e57ee4e57dfe931f",
"url": "https://osv.dev/vulnerability/CVE-2026-46606",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Glances: Command Injection via KVM/QEMU VM Domain Names in glances/plugins/vms/engines/virsh.py",
"summary": "Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.5, the Glances KVM/QEMU monitoring engine (glances/plugins/vms/engines/virsh.py) passes VM domain names, read directly from virsh list --all output, into f-string command templates that are processed by secure_popen(). secure_popen() is explicitly designed to interpret &&, |, and > as shell operators. Because domain names are never sanitised before interpolation, any user with the ability to create or rename a KVM/QEMU virtual machine can execute arbitrary commands as the OS user running Glances — commonly root on hypervisor hosts. This vulnerability is fixed in 4.5.5.",
"evidence": "osv:CVE-2026-46606",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-46606",
"aliases": [
"CVE-2026-46606",
"GHSA-v5r2-qh84-fjx5",
"PYSEC-2026-2497"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nicolargo/glances",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "988cad68474509557aa2db75f928393c00226979"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "4.5.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "988cad68474509557aa2db75f928393c00226979"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v4.5.5"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "4.5.5"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v4.5.4",
"v4.5.3",
"v4.5.2",
"v4.5.1",
"v4.5.0.5",
"v4.5.0.4",
"v4.5.0.3",
"v4.5.0.2",
"v4.5.0.1",
"v4.5.0",
"v4.4.1",
"v4.4.0",
"v4.3.3",
"v4.3.2",
"v4.3.1",
"v4.3.0.8",
"v4.3.0.7",
"v4.3.0.6",
"v4.3.0.3",
"v4.3.0.2",
"v4.3.0.1",
"v4.3.0",
"v4.2.0",
"v3.4.0",
"v3.3.1",
"v3.3.0.1",
"v3.3.0",
"v3.2.7",
"v3.2.6",
"v3.2.5",
"v3.2.4.2",
"v3.2.4.1",
"v3.2.4",
"v3.2.3.1",
"v3.2.3",
"v3.2.2",
"v3.2.1",
"v3.2.0",
"v3.1.7",
"v3.1.6.1",
"v3.1.5",
"v3.1.4",
"v3.1.3",
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v3.0",
"v2.11",
"v2.10",
"v2.9.1",
"v2.9.0",
"v2.8.8",
"v2.8.7",
"v2.8.6",
"v2.8.5",
"v2.8.4",
"v2.8.3",
"v2.8.2",
"v2.8.1",
"v2.8",
"v2.7.1",
"v2.7",
"v2.7_RC1",
"v2.5.1",
"v2.5",
"v2.4.2",
"v2.4.1",
"v2.3",
"v2.2",
"v1.7.3",
"v1.7.2",
"v1.7.1",
"v1.7",
"v1.6.1",
"v1.6",
"v1.5.2",
"v1.5.1",
"v1.5",
"v1.4.2.1",
"v1.4.2",
"v1.4.1.1",
"v1.4.1",
"v1.4",
"v1.3.7",
"v1.3.6",
"v1.3.5",
"v1.3.4",
"v1.3.3",
"v1.3.2",
"v1.3.1",
"v1.3",
"v1.2",
"v1.1.3",
"v1.1.2",
"v1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46606.json"
}
}
],
"modified": "2026-10-28T02:30:53.322981815Z",
"provider": "osv",
"references": [
"https://github.com/nicolargo/glances/releases/tag/v4.5.5",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46606.json",
"https://github.com/nicolargo/glances/security/advisories/GHSA-v5r2-qh84-fjx5",
"https://nvd.nist.gov/vuln/detail/CVE-2026-46606"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46606.json"
}
},
"related_cves": [
{
"value": "CVE-2026-46606",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 522325,
"published_at": "2026-06-25T18:02:14.168+00:00"
}