cve.bz

CVE-2026-68518 nicolargo glances: OS Command Injection

8.8 highEPSS 0.2%Fix available

High (8.8) in nicolargo glances. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in glances 4.5.6.

On this page
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, _sanitize_mustache_dict() in glances/actions.py sanitizes individual Mustache values before chevron.render(), allowing adjacent unescaped Mustache variables to reconstruct shell operators that secure_popen() executes when attacker-controlled process or container fields are rendered by an administrator-configured action template. This issue is fixed in 4.5.6.

Severity

CVSS 4.0

8.8 high
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-08-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-68518 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-68518?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-68518?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-68518 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nicolargo glances< 4.5.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qcpp-8x79-hhp3PyPIglances<4.5.64.5.6
PYSEC-2026-3668PyPIglances<4.5.64.5.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13glancesno fix listedDEBIAN-CVE-2026-68518
Debian14glances4.5.6+dfsg-1DEBIAN-CVE-2026-68518
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 3 moreglancesno fix listedUBUNTU-CVE-2026-68518
openSUSETumbleweedpython-Glances4.5.6-1.1openSUSE-SU-2026:11674-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important impact because successful exploitation permits an unprivileged local user to escalate privileges to the account running the Glances monitoring service, often root. Although the flaw allows local command execution, it requires non-default action triggers to be configured by an administrator using adjacent, unescaped template variables. Because custom action configurations with unescaped variables are not enabled in standard deployments, exposure is limited to environments utilizing customized alert automation.

Red Hat's mitigation

Restrict network access to the Glances service to trusted hosts only, or configure it to listen only on localhost. Additionally, administrators should carefully review and validate any custom action templates to ensure they do not render untrusted input directly into shell commands. If the Glances service is reconfigured, a restart may be required for changes to take effect.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-68518.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON