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.

Severity (CVSS 3.1)7.0High
Exploit odds (30 days)0.3%top 71.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12glancesno fix listedDEBIAN-CVE-2026-32611
Debian:13glancesno fix listedDEBIAN-CVE-2026-32611
Debian:14glances4.5.2+dfsg-1DEBIAN-CVE-2026-32611
PyPIglances4.5.2GHSA-49g7-2ww7-3vf5
PyPIglances4.5.2PYSEC-2026-2170
Ubuntu:22.04:LTSglancesno fix listedUBUNTU-CVE-2026-32611
Ubuntu:24.04:LTSglancesno fix listedUBUNTU-CVE-2026-32611
Ubuntu:25.10glancesno fix listedUBUNTU-CVE-2026-32611
Ubuntu:26.04:LTSglancesno fix listedUBUNTU-CVE-2026-32611
Ubuntu:26.10glancesno fix listedUBUNTU-CVE-2026-32611

Affected products (as reported)

VendorProductVersions
nicolargo glances < 4.5.2

Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L

References