# CVE-2026-32608: Glances has a Command Injection via Process Names in Action Command Templates

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A: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.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T16:26:22.000Z
- Modified: 2026-07-13T07:26:49.975Z
- Also known as: GHSA-vcv2-q258-wrg7, PYSEC-2026-2167
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Glances is an open-source system cross-platform monitoring tool. The Glances action system allows administrators to configure shell commands that execute when monitoring thresholds are exceeded. These commands support Mustache template variables (e.g., `{{name}}`, `{{key}}`) that are populated with runtime monitoring data. The `secure_popen()` function, which executes these commands, implements its own pipe, redirect, and chain operator handling by splitting the command string before passing each segment to `subprocess.Popen(shell=False)`. Prior to 4.5.2, when a Mustache-rendered value (such as a process name, filesystem mount point, or container name) contains pipe, redirect, or chain metacharacters, the rendered command is split in unintended ways, allowing an attacker who controls a process name or container name to inject arbitrary commands. Version 4.5.2 fixes the issue.

(As written by CVE List.)

## Affected

- nicolargo glances: < 4.5.2; before 4.5.2
- glances (PyPI): before 4.5.2

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nicolargo/glances/security/advisories/GHSA-vcv2-q258-wrg7> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/nicolargo/glances/commit/6f4ec53d967478e69917078e6f73f448001bf107> (fix, patch, web)
- <https://github.com/nicolargo/glances/releases/tag/v4.5.2> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32608> (advisory)
- <https://github.com/nicolargo/glances> (package)

## Sources

- CVE List: [CVE-2026-32608](https://www.cve.org/CVERecord?id=CVE-2026-32608), CVE Terms of Use, modified 2026-03-18
- GitHub Advisory Database: [GHSA-vcv2-q258-wrg7](https://github.com/advisories/GHSA-vcv2-q258-wrg7), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-32608](https://nvd.nist.gov/vuln/detail/CVE-2026-32608), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2167](https://osv.dev/vulnerability/PYSEC-2026-2167), CC-BY-4.0, modified 2026-07-13

---

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