high8.8
CVE-2026-68518
Glances has a command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | glances | <= 4.5.5 | 4.5.6 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-qcpp-8x79-hhp3
- https://github.com/nicolargo/glances/security/advisories/GHSA-qcpp-8x79-hhp3
- https://github.com/nicolargo/glances/commit/9c280eae5419da680827024b60f6265956e31994
- https://github.com/nicolargo/glances/releases/tag/v4.5.6