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

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T16:34:03.000Z
- Modified: 2026-07-13T07:26:20.779Z
- Also known as: GHSA-49g7-2ww7-3vf5, PYSEC-2026-2170
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- nicolargo glances: < 4.5.2; before 4.5.2
- glances (PyPI): before 4.5.2

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/nicolargo/glances/security/advisories/GHSA-49g7-2ww7-3vf5> (exploit, evidence, vendor-advisory, web)
- <https://github.com/nicolargo/glances/commit/63b7da28895249d775202d639e5531ba63491a5c> (fix, patch, web)
- <https://github.com/nicolargo/glances/releases/tag/v4.5.2> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32611> (advisory)
- <https://github.com/nicolargo/glances> (package)

## Sources

- CVE List: [CVE-2026-32611](https://www.cve.org/CVERecord?id=CVE-2026-32611), CVE Terms of Use, modified 2026-03-18
- GitHub Advisory Database: [GHSA-49g7-2ww7-3vf5](https://github.com/advisories/GHSA-49g7-2ww7-3vf5), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-32611](https://nvd.nist.gov/vuln/detail/CVE-2026-32611), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2170](https://osv.dev/vulnerability/PYSEC-2026-2170), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-32611 · Whole record: https://cve.day/CVE-2026-32611.json · Rebuilt by cve.day 2026-11-25T22:59:16.129Z
