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

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-17T16:18:29.391Z
- Modified: 2026-10-23T16:10:00.313Z
- Also known as: GHSA-qcpp-8x79-hhp3, PYSEC-2026-3668
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nicolargo glances: < 4.5.6
- glances (PyPI): before 4.5.6

## Every score

- GitHub_M: CVSS:4.0 8.8 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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> (exploit, web)
- <https://github.com/nicolargo/glances/commit/9c280eae5419da680827024b60f6265956e31994> (web)
- <https://github.com/nicolargo/glances/releases/tag/v4.5.6> (web)
- <https://github.com/nicolargo/glances> (package)
- <https://pypi.org/project/glances> (package)
- <https://github.com/advisories/GHSA-qcpp-8x79-hhp3> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-68518> (advisory)

## Sources

- CVE List: [CVE-2026-68518](https://www.cve.org/CVERecord?id=CVE-2026-68518), CVE Terms of Use, modified 2026-08-17
- GitHub Advisory Database: [GHSA-qcpp-8x79-hhp3](https://github.com/advisories/GHSA-qcpp-8x79-hhp3), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-68518](https://nvd.nist.gov/vuln/detail/CVE-2026-68518), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-3668](https://osv.dev/vulnerability/PYSEC-2026-3668), CC-BY-4.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-68518 · Whole record: https://cve.day/CVE-2026-68518.json · Rebuilt by cve.day 2026-11-25T22:59:33.364Z
