CVE-2026-35588: Glances has CQL Injection in its Cassandra Export Module via Unsanitized Config Values

Published Apr 20, 2026
·
Updated

Summary

The Cassandra export module (glances/exports/glancescassandra/init.py) interpolates keyspace, table, and replicationfactor configuration values directly into CQL statements without validation. A user with write access to glances.conf can redirect all monitoring data to an attacker-controlled Cassandra keyspace.

Vulnerable Code

python Line 80 f"CREATE KEYSPACE {self.keyspace} WITH " f"replication = {{ 'class': 'SimpleStrategy', 'replicationfactor': '{self.replicationfactor}' }}"

Line 94 f"CREATE TABLE {self.table} (plugin text, time timeuuid, stat map<text,float>, PRIMARY KEY (plugin, time)) WITH CLUSTERING ORDER BY (time DESC)"

Line 112 stmt = f"INSERT INTO {self.table} (plugin, time, stat) VALUES (?, ?, ?)"

Steps to Reproduce

1. Configure glances.conf with malicious table value: ini [cassandra] host = 127.0.0.1 port = 9042 keyspace = glances table = attackerks.capturedstats 2. Create attacker keyspace in Cassandra 3. Run glances --export cassandra 4. All monitoring data is written to attackerks.capturedstats instead of the legitimate table

Confirmed output: INSERT stmt: INSERT INTO attackerks.capturedstats (plugin, time, stat) VALUES (?, ?, ?) Legitimate table row count: 0 Attacker table row count: 1 [CONFIRMED] plugin=cpu, stat={'user': 50.0}

Impact

All exported monitoring data (CPU, memory, network, disk I/O) is silently redirected to an attacker-controlled Cassandra keyspace — both data exfiltration and data loss.

Proposed Fix

python import re

def validatecqlidentifier(name: str) -> str: if not re.match(r'^[a-zA-Z][a-zA-Z0-9.]$', name): raise ValueError(f"Invalid CQL identifier: {name!r}") return name

In init(): validate before use self.keyspace = validatecqlidentifier(self.keyspace) self.table = validatecqlidentifier(self.table)

!PoC

Other sources

Glances is an open-source system cross-platform monitoring tool. Prior to version 4.5.4, the Cassandra export module (glances/exports/glancescassandra/init.py) interpolates keyspace, table, and replicationfactor configuration values directly into CQL statements without validation. A user with write access to glances.conf can redirect all monitoring data to an attacker-controlled Cassandra keyspace. Version 4.5.4 contains a fix.

MITRE

Affected Software

3 affected componentsFixes available
pypi/glances<4.5.4
pip/glances<4.5.4
4.5.4
nicolargo Glances<4.5.4

Event History

Apr 20, 2026
CVE Published
via MITRE·11:20 PM
Data Sourced
via MITRE·11:20 PM
DescriptionSeverityWeakness
Apr 21, 2026
Data Sourced
via NVD·12:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:18 PM
Data Sourced
via GitHub·03:18 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-35588?

CVE-2026-35588 is considered a critical vulnerability due to its potential for CQL Injection in the Cassandra Export Module.

2

How do I fix CVE-2026-35588?

To fix CVE-2026-35588, update Glances to version 4.5.4 or later.

3

What components are affected by CVE-2026-35588?

CVE-2026-35588 affects the Cassandra export module in Glances versions prior to 4.5.4.

4

What type of attack is associated with CVE-2026-35588?

CVE-2026-35588 is associated with CQL Injection attacks that exploit unsanitized configuration values.

5

Which versions of Glances are vulnerable to CVE-2026-35588?

Versions of Glances prior to 4.5.4 are vulnerable to CVE-2026-35588.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203