Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-32632 EUVD-2026-12925GHSA-hhcg-r27j-fhv9PYSEC-2026-2171

Glances's REST/WebUI Lacks Host Validation and Remains Exposed to DNS Rebinding

Published Mar 18, 2026 · Updated Mar 18, 2026 · Assigned by GitHub_M

Description

Glances is an open-source system cross-platform monitoring tool. Glances recently added DNS rebinding protection for the MCP endpoint, but prior to version 4.5.2, the main REST/WebUI FastAPI application still accepts arbitrary `Host` headers and does not apply `TrustedHostMiddleware` or an equivalent host allowlist. As a result, the REST API, WebUI, and token endpoint remain reachable through attacker-controlled domains in classic DNS rebinding scenarios. Once the victim browser has rebound the attacker domain to the Glances service, same-origin policy no longer protects the API because the browser considers the rebinding domain to be the origin. This is a distinct issue from the previously reported default CORS weakness. CORS is not required for exploitation here because DNS rebinding causes the victim browser to treat the malicious domain as same-origin with the rebinding target. Version 4.5.2 contains a patch for the issue.

Affected products

VendorProductAffectedFixed
nicolargo glances < 4.5.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glances 4.5.2+dfsg-1 —
Debian 13 glances No fix yet —
Debian 12 glances No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 glances No fix yet —
Ubuntu 26.04 LTS glances No fix yet —
Ubuntu 25.10 glances No fix yet —
Ubuntu 24.04 LTS glances No fix yet —
Ubuntu 22.04 LTS glances No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS glances No fix yet —
Ubuntu Pro 18.04 LTS glances No fix yet —
Ubuntu Pro 16.04 LTS glances No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Glances 4.5.2-1.1 openSUSE-SU-2026:10415-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI glances < 4.5.2 4.5.2 GHSA-hhcg-r27j-fhv9

Advisories 1

References