Vulnerability · Published Aug 17, 2026 · Assigned by GitHub_M
CVE-2026-68518Glances: Command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction
High 8.8
In plain English
A high-severity OS command injection in glances from nicolargo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, _sanitize_mustache_dict() in glances/actions.py sanitizes individual Mustache values before chevron.render(), allowing adjacent unescaped Mustache variables to reconstruct shell operators that secure_popen() executes when attacker-controlled process or container fields are rendered by an administrator-configured action template. This issue is fixed in 4.5.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | glances | no fix listed | DEBIAN-CVE-2026-68518 |
| Debian:13 | glances | no fix listed | DEBIAN-CVE-2026-68518 |
| Debian:14 | glances | 4.5.6+dfsg-1 | DEBIAN-CVE-2026-68518 |
| PyPI | glances | 4.5.6 | PYSEC-2026-3668 |
| PyPI | glances | 4.5.6 | GHSA-qcpp-8x79-hhp3 |
| Ubuntu:22.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-68518 |
| Ubuntu:24.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-68518 |
| Ubuntu:26.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-68518 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
References
- https://github.com/nicolargo/glances/security/advisories/GHSA-qcpp-8x79-hhp3 x_refsource_CONFIRM
- https://github.com/nicolargo/glances/commit/9c280eae5419da680827024b60f6265956e31994 x_refsource_MISC
- https://github.com/nicolargo/glances/releases/tag/v4.5.6 x_refsource_MISC