Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
GlancesPyPI | < 4.5.2 | 4.5.2 |
Affected products
3- ghsa-coords2 versions
< 4.5.2+ 1 more
- (no CPE)range: < 4.5.2
- (no CPE)range: < 4.5.2-1.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-49g7-2ww7-3vf5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-32611ghsaADVISORY
- github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5cghsax_refsource_MISCWEB
- github.com/nicolargo/glances/releases/tag/v4.5.2ghsax_refsource_MISCWEB
- github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.