{"id":"CVE-2026-32608","published":"2026-03-18T06:03:22Z","modified":"2026-03-18T15:39:15Z","title":"Glances has a Command Injection via Process Names in Action Command Templates","vendor":"nicolargo","product":"glances","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0027,"percentile":0.19588,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/nicolargo/glances/security/advisories/GHSA-vcv2-q258-wrg7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nicolargo/glances/commit/6f4ec53d967478e69917078e6f73f448001bf107","tags":["x_refsource_MISC"]},{"url":"https://github.com/nicolargo/glances/releases/tag/v4.5.2","tags":["x_refsource_MISC"]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.92},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"nicolargo","affectedVersions":[{"vendor":"nicolargo","product":"glances","versions":["< 4.5.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-18T15:38:16.679632Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Glances","vulnerableRanges":["<4.5.2"],"patched":["4.5.2"],"from":["GHSA-vcv2-q258-wrg7","PYSEC-2026-2167"],"provenance":"source"}],"summary":{"text":"Glances, an open-source system monitoring tool, has an OS command injection flaw in its action system's secure_popen() function, which runs administrator-configured shell commands using Mustache template values such as process names, mount points, or container names. Before version 4.5.2, pipe, redirect, or chain characters in those rendered values were split unexpectedly, so an attacker who controls a process or container name could inject arbitrary commands, requiring local access and low privileges, with a configured action template in place and no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:47Z"},"euvd":{"id":"EUVD-2026-12781","exploited":false,"provenance":"source"}}