CVE-2026-32608
CVE-2026-32608 · Glances has a Command Injection via Process Names in Action Command Templates
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.0 · High · EPSS 0.2% · Fix available
- Published
- Updated
Affected products and versions
glances
- Versions
- < 4.5.2: Affected
No fix published
glances Debian:12
- Versions
- 3.3.1.1+dfsg-1
- 3.4.0.3+dfsg-1
- 4.0.5+dfsg-1
- 4.1.2.1+dfsg-1
- 4.2.1+dfsg-1
- 4.3.0.8+dfsg-1
- 4.3.1+dfsg-1
- 4.3.3+dfsg-1
- 4.5.1+dfsg-1
- 4.5.2+dfsg-1
- 4.5.3.2+dfsg-1
- 4.5.4+dfsg-1
- 4.5.5+dfsg-1
- 4.5.6+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Debian:13
- Versions
- 4.3.1+dfsg-1
- 4.3.3+dfsg-1
- 4.5.1+dfsg-1
- 4.5.2+dfsg-1
- 4.5.3.2+dfsg-1
- 4.5.4+dfsg-1
- 4.5.5+dfsg-1
- 4.5.6+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Debian:14
- Versions
- 4.3.1+dfsg-1
- 4.3.3+dfsg-1
- 4.5.1+dfsg-1
- Affected ranges
- ECOSYSTEM: < 4.5.2+dfsg-1
Update to 4.5.2+dfsg-1
glances PyPI
- Versions
- 1.3.1
- 1.3.2
- 1.3.3
- 1.3.4
- 1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.5.0.4
- 4.5.0.5
- 4.5.1
- Affected ranges
- ECOSYSTEM: < 4.5.2
Update to 4.5.2
glances Ubuntu:Pro:16.04:LTS
- Versions
- 2.3-1build1
- 2.3-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:Pro:18.04:LTS
- Versions
- 2.10-2
- 2.11.1-1
- 2.11.1-2
- 2.11.1-3
- 2.11.1-3ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:Pro:20.04:LTS
- Versions
- 3.1.0-1
- 3.1.1-1
- 3.1.3-1
- 3.1.3-1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:22.04:LTS
- Versions
- 3.1.5-1
- 3.2.3.1+dfsg-1
- 3.2.4.2+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:24.04:LTS
- Versions
- 3.4.0.3+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:25.10
- Versions
- 4.3.0.8+dfsg-1
- 4.3.1+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:26.10
- Versions
- 4.3.3+dfsg-1
- 4.5.4+dfsg-1
- 4.5.5+dfsg-1
- 4.5.6+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
glances Ubuntu:26.04:LTS
- Versions
- 4.3.1+dfsg-1
- 4.3.3+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published