Description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, as_dict_secure() in glances/config.py checks only option names and exposes public_username and credentials embedded in public_api values through unauthenticated GET /api/4/config and GET /api/4/config/ip requests. This issue is fixed in 4.5.6.
Published: 2026-08-17
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Glances, a system monitoring tool, has a function as_dict_secure() that validates only option names. Prior to version 4.5.6, the function inadvertently exposed public_username and credentials stored in public_api values when users accessed /api/4/config or /api/4/config/ip without authentication. The result is that attackers can obtain stored credentials embedded in URL values, leading to credential disclosure. The weakness is defined as CWE‑200.

Affected Systems

The vulnerability affects the glances package from the nicolargo vendor. All installations using glances versions earlier than 4.5.6 are impacted. Versions 4.5.6 and later include a fix that removed the exposure of credentials via the REST API.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity. Since the exploit requires unauthenticated access to publicly exposed API endpoints, an attacker who can reach the host can retrieve credentials. EPSS data is unavailable, so the current probability of exploitation is unknown; however, the vulnerability is not listed in CISA KEV. The attack vector is inferred to be remote over HTTP/HTTPS, with minimal prerequisites beyond network connectivity to the Glances API. If disabled externally, the risk is mitigated.

Generated by OpenCVE AI on August 17, 2026 at 18:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade glances to version 4.5.6 or later, which removes the credential leakage.
  • Temporarily disable the /api/4/config and /api/4/config/ip endpoints or restrict them to authenticated users while awaiting an upgrade.
  • Remove or mask any credentials embedded in public_api URLs that are currently stored or retrieved by the application.

Generated by OpenCVE AI on August 17, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-4h34-v6r8-mmjc Glances: as_dict_secure() Value-Level Bypass Leaks Credentials in URL Values via /api/4/config
History

Mon, 17 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Nicolargo
Nicolargo glances
Vendors & Products Nicolargo
Nicolargo glances

Mon, 17 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Description Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, as_dict_secure() in glances/config.py checks only option names and exposes public_username and credentials embedded in public_api values through unauthenticated GET /api/4/config and GET /api/4/config/ip requests. This issue is fixed in 4.5.6.
Title Glances: as_dict_secure() Value-Level Bypass Leaks Credentials in URL Values via /api/4/config
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}


Subscriptions

Nicolargo Glances
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T19:36:26.683Z

Reserved: 2026-07-30T16:19:08.082Z

Link: CVE-2026-68520

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T18:18:06.753

Modified: 2026-08-17T18:18:06.753

Link: CVE-2026-68520

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T18:30:04Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor