Skip to main content

Glances CVE-2026-30930

HIGH
SQL Injection (CWE-89)
2026-03-10 security-advisories@github.com GHSA-x46r-mf5g-xpr6
7.3
CVSS 4.0 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
7.3 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
SUSE
9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

7
Analysis Updated
Apr 29, 2026 - 01:37 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Apr 29, 2026 - 01:11 vuln.today
cvss_changed
Severity Changed
Apr 29, 2026 - 01:11 NVD
CRITICAL HIGH
CVSS changed
Apr 29, 2026 - 01:11 NVD
9.8 (CRITICAL) 7.3 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
Analysis Generated
Mar 12, 2026 - 21:55 vuln.today
CVE Published
Mar 10, 2026 - 18:18 nvd
CRITICAL 9.8

DescriptionGitHub Advisory

Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.1, 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. This vulnerability is fixed in 4.5.1.

AnalysisAI

SQL injection in Glances TimescaleDB export module allows local attackers to execute arbitrary SQL commands against the monitoring database. The vulnerability stems from unsafe string concatenation when constructing queries with system monitoring data (process names, mount points, network interfaces, container names). Proof-of-concept exploit code exists (CVSS E:P). EPSS score of 0.02% (4th percentile) indicates very low observed exploitation activity. Vendor-released patch available in version 4.5.1.

Technical ContextAI

Glances is a cross-platform system monitoring tool written in Python that exports metrics to various backends including TimescaleDB (PostgreSQL time-series extension). The vulnerability (CWE-89: SQL Injection) resides in the TimescaleDB export module's normalize() method, which wraps string values in single quotes but fails to escape embedded single quotes within the data. When system monitoring data containing malicious payloads (e.g., a process named "evil' OR '1'='1") is concatenated into SQL INSERT statements, the attacker-controlled strings break out of their intended context. Because Glances collects data from local system sources (process lists, filesystem mounts, network interfaces, Docker containers), an attacker with the ability to create processes or containers with crafted names can inject SQL. The affected CPE (cpe:2.3:a:nicolargo:glances:*:*:*:*:*:*:*:*) covers all Glances versions prior to 4.5.1.

RemediationAI

Upgrade to Glances version 4.5.1 or later, which implements proper SQL parameterization in the TimescaleDB export module per commit 39161f0d6fd723d83f534b48f24cdca722573336 (https://github.com/nicolargo/glances/commit/39161f0d6fd723d83f534b48f24cdca722573336). The fix replaces string concatenation with prepared statements that safely handle special characters. For systems unable to upgrade immediately, disable the TimescaleDB export module in the Glances configuration file (set timescaledb export to false or remove the timescaledb section). Trade-off: disabling TimescaleDB export eliminates long-term metric storage and historical analysis capabilities. Alternative mitigation: restrict local user ability to create arbitrarily-named processes and containers through OS-level controls (SELinux policies, AppArmor profiles, container runtime restrictions), though this is operationally complex and may interfere with legitimate workloads. Verify the patch by inspecting the normalize() method for parameterized query usage rather than string concatenation.

Vendor StatusVendor

SUSE

Severity: Critical

Share

CVE-2026-30930 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy