{"id":"CVE-2026-32611","published":"2026-03-18T17:21:18Z","modified":"2026-03-18T18:51:23Z","title":"Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements","vendor":"nicolargo","product":"glances","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.31271,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c","tags":["x_refsource_MISC"]},{"url":"https://github.com/nicolargo/glances/releases/tag/v4.5.2","tags":["x_refsource_MISC"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":6.25},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"nicolargo","affectedVersions":[{"vendor":"nicolargo","product":"glances","versions":["< 4.5.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-18T18:50:55.560409Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Glances","vulnerableRanges":["<4.5.2"],"patched":["4.5.2"],"from":["GHSA-49g7-2ww7-3vf5","PYSEC-2026-2170"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-12882","exploited":false,"provenance":"source"}}