Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Glances
  4. ›
  5. CVE-2026-30930

CVE-2026-30930: Glances has SQL Injection via Process Names in TimescaleDB Export

March 9, 2026 (updated March 10, 2026)

The TimescaleDB export module constructs SQL queries using string concatenation with unsanitized system monitoring data. The normalize() method wraps string values in single quotes but does not escape embedded single quotes, making SQL injection trivial via attacker-controlled data such as process names, filesystem mount points, network interface names, or container names.

Root Cause: The normalize() function uses f"’{value}’" for string values without escaping single quotes within the value. The resulting strings are concatenated into INSERT queries via string formatting and executed directly with cur.execute() — no parameterized queries are used.

References

  • github.com/advisories/GHSA-x46r-mf5g-xpr6
  • github.com/nicolargo/glances
  • github.com/nicolargo/glances/commit/39161f0d6fd723d83f534b48f24cdca722573336
  • github.com/nicolargo/glances/releases/tag/v4.5.1
  • github.com/nicolargo/glances/security/advisories/GHSA-x46r-mf5g-xpr6
  • nvd.nist.gov/vuln/detail/CVE-2026-30930

Code Behaviors & Features

Detect and mitigate CVE-2026-30930 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.5.1

Fixed versions

  • 4.5.1

Solution

Upgrade to version 4.5.1 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/Glances/CVE-2026-30930.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:19 +0000.