Vulnerability · Published Mar 18, 2026 · Assigned by GitHub_M
CVE-2026-32611Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements
High 7.0
In plain English
A high-severity SQL injection in glances from nicolargo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | glances | no fix listed | DEBIAN-CVE-2026-32611 |
| Debian:13 | glances | no fix listed | DEBIAN-CVE-2026-32611 |
| Debian:14 | glances | 4.5.2+dfsg-1 | DEBIAN-CVE-2026-32611 |
| PyPI | glances | 4.5.2 | GHSA-49g7-2ww7-3vf5 |
| PyPI | glances | 4.5.2 | PYSEC-2026-2170 |
| Ubuntu:22.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-32611 |
| Ubuntu:24.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-32611 |
| Ubuntu:25.10 | glances | no fix listed | UBUNTU-CVE-2026-32611 |
| Ubuntu:26.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-32611 |
| Ubuntu:26.10 | glances | no fix listed | UBUNTU-CVE-2026-32611 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
References
- https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5 x_refsource_CONFIRM
- https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c x_refsource_MISC
- https://github.com/nicolargo/glances/releases/tag/v4.5.2 x_refsource_MISC