{"id":"CVE-2026-32611","state":"PUBLISHED","title":"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.","publishedAt":"2026-03-18T17:21:18.668Z","updatedAt":"2026-03-18T18:51:23.479Z","severity":{"score":7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["nicolargo glances"],"affected":[{"vendor":"nicolargo","product":"glances","versions":[{"version":"< 4.5.2","status":"affected"}]}],"references":["https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5","https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c","https://github.com/nicolargo/glances/releases/tag/v4.5.2"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/32xxx/CVE-2026-32611.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-32611","state":"PUBLISHED","datePublished":"2026-03-18T17:21:18.668Z","dateUpdated":"2026-03-18T18:51:23.479Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-12T14:54:24.270Z"},"containers":{"cna":{"title":"Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements","descriptions":[{"lang":"en","value":"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":[{"vendor":"nicolargo","product":"glances","versions":[{"version":"< 4.5.2","status":"affected"}]}],"references":[{"url":"https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5","name":"https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c","name":"https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c","tags":["x_refsource_MISC"]},{"url":"https://github.com/nicolargo/glances/releases/tag/v4.5.2","name":"https://github.com/nicolargo/glances/releases/tag/v4.5.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-18T17:21:18.668Z"},"source":{"advisory":"GHSA-49g7-2ww7-3vf5","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-18T18:50:55.560409Z","id":"CVE-2026-32611","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-18T18:51:23.479Z"}}]}}}