What’s Vulnerable › Vulnerabilities
CVE-2026-32611: Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-18 · updated 2026-06-17
- Weakness: CWE-89
Description
Glances is an open-source system cross-platform monitoring tool. The GHSA-x46r fix (commit 39161f0) addressed SQL injection in the TimescaleDB export module by converting all SQL operations to use parameterized queries and `psycopg.sql` composable objects. However, the DuckDB export module (`glances/exports/glances_duckdb/__init__.py`) was not included in this fix and contains the same class of vulnerability: table names and column names derived from monitoring statistics are directly interpolated into SQL statements via f-strings. While DuckDB INSERT values already use parameterized queries (`?` placeholders), the DDL construction and table name references do not escape or parameterize identifier names. Version 4.5.3 provides a more complete fix.
Affected products
- nicolargo glances: before 4.5.2 — fixed in 4.5.2
How to fix
Upgrade to a fixed version: nicolargo glances 4.5.2. Check the vendor advisory for mitigations.
References
- https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c
- https://github.com/nicolargo/glances/releases/tag/v4.5.2
- https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5
- https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5
Get alerted when CVE-2026-32611 or the next vulnerability affects your stack