Description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.1, The TimescaleDB export module constructs SQL queries using string concatenation with unsanitized system monitoring data. The normalize() method wraps string values in single quotes but does not escape embedded single quotes, making SQL injection trivial via attacker-controlled data such as process names, filesystem mount points, network interface names, or container names. This vulnerability is fixed in 4.5.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nicolargo | glances | < 4.5.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glances | 4.5.1+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | glances | No fix yet | — |
| Ubuntu 26.04 LTS | glances | No fix yet | — |
| Ubuntu 25.10 | glances | No fix yet | — |
| Ubuntu 24.04 LTS | glances | No fix yet | — |
| Ubuntu 22.04 LTS | glances | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | glances | No fix yet | — |
| Ubuntu Pro 18.04 LTS | glances | No fix yet | — |
| Ubuntu Pro 16.04 LTS | glances | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | glances | < 4.5.1 | 4.5.1 | GHSA-x46r-mf5g-xpr6 |