The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33641

CVE-2026-33641: Glances Privilege Escalation Vulnerability

CVE-2026-33641 is a privilege escalation vulnerability in Glances that allows command injection through configuration files. Attackers can execute arbitrary commands with elevated privileges during startup or reload.

Published: April 2, 2026

CVE-2026-33641 Overview

CVE-2026-33641 is a command injection vulnerability (CWE-78) affecting Glances, an open-source cross-platform system monitoring tool. Prior to version 4.5.3, Glances supports dynamic configuration values where substrings enclosed in backticks are executed as system commands during configuration parsing. This dangerous behavior occurs in Config.get_value() and is implemented without any validation or restriction of the executed commands.

If an attacker can modify or influence configuration files, arbitrary commands will execute automatically with the privileges of the Glances process during startup or configuration reload. In deployments where Glances runs with elevated privileges (e.g., as a system service), this may lead to privilege escalation.

Critical Impact

Attackers with write access to Glances configuration files can achieve arbitrary command execution with the privileges of the Glances process, potentially leading to full system compromise in elevated-privilege deployments.

Affected Products

  • Glances versions prior to 4.5.3

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-33641 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-33641

Vulnerability Analysis

This vulnerability stems from unsafe handling of configuration file values in Glances. The application's Config.get_value() function processes configuration strings and interprets any text enclosed in backticks as shell commands to be executed. This dynamic configuration feature was implemented without proper input validation or command allowlisting.

When Glances parses its configuration file during startup or reload, any backtick-enclosed strings are passed directly to the system shell for execution. The command output is then substituted into the configuration value. This creates a direct path from configuration file modification to arbitrary code execution.

The vulnerability requires local access to modify configuration files, but the impact is significant because Glances is commonly deployed as a system service running with elevated privileges to access system metrics and hardware information.

Root Cause

The root cause is the implementation of a shell command substitution feature within the Config.get_value() function that processes backtick-enclosed substrings as system commands. This design pattern—interpreting configuration values as executable code—introduces a classic command injection vulnerability (CWE-78) when configuration files can be modified by less-privileged users or through other attack vectors.

Attack Vector

The attack requires local access to modify Glances configuration files. An attacker with write access to the configuration file can inject malicious commands enclosed in backticks. These commands execute when Glances starts or reloads its configuration. For example, a configuration value containing `id > /tmp/pwned` would execute the id command and write its output to a file.

The attack is particularly dangerous in scenarios where:

  • Glances runs as a system service with root privileges
  • Configuration files are writable by non-root users due to misconfigured permissions
  • Glances is deployed in containerized environments where configuration is mounted from external sources

The security patch updates dependencies including anyio from version 4.12.1 to 4.13.0 and attrs from version 25.4.0 to 26.1.0 as part of the broader security fix:

text
     # via fastapi
 annotated-types==0.7.0
     # via pydantic
-anyio==4.12.1
+anyio==4.13.0
     # via
     #   elasticsearch
     #   httpx
     #   mcp
     #   sse-starlette
     #   starlette
-attrs==25.4.0
+attrs==26.1.0
     # via
     #   jsonschema
     #   referencing

Source: GitHub Commit Update

Detection Methods for CVE-2026-33641

Indicators of Compromise

  • Configuration files containing backtick characters (`) with embedded shell commands
  • Unexpected child processes spawned by the Glances process during startup or configuration reload
  • Modifications to Glances configuration files (glances.conf) by unauthorized users or processes
  • Suspicious command execution patterns correlating with Glances service restarts

Detection Strategies

  • Monitor file integrity of Glances configuration files for unauthorized modifications
  • Audit process trees for unexpected command execution originating from Glances parent processes
  • Implement file access logging on /etc/glances/ and user-level ~/.config/glances/ directories
  • Use SentinelOne behavioral AI to detect anomalous process spawning patterns from monitoring tools

Monitoring Recommendations

  • Enable auditd or equivalent filesystem auditing on Glances configuration directories
  • Configure alerts for any modification to glances.conf files outside of maintenance windows
  • Monitor for shell command execution patterns that correlate with Glances service events
  • Track privilege escalation attempts following Glances process activity

How to Mitigate CVE-2026-33641

Immediate Actions Required

  • Upgrade Glances to version 4.5.3 or later immediately
  • Audit all Glances configuration files for malicious backtick-enclosed commands
  • Restrict write permissions on Glances configuration files to root or administrative users only
  • Review logs for evidence of configuration file tampering or suspicious command execution

Patch Information

The vulnerability has been patched in Glances version 4.5.3. The fix removes or restricts the dynamic command execution feature in configuration parsing. Users should upgrade immediately by updating their Glances installation.

For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-qhj7-v7h7-q4c7 and the GitHub Release v4.5.3.

Workarounds

  • Set strict file permissions (chmod 600) on all Glances configuration files
  • Run Glances with minimal required privileges using a dedicated service account
  • Audit configuration files and remove any backtick characters before each service start
  • Consider running Glances in a sandboxed environment or container with restricted capabilities
bash
# Secure Glances configuration files
chmod 600 /etc/glances/glances.conf
chown root:root /etc/glances/glances.conf

# For user-level configurations
chmod 600 ~/.config/glances/glances.conf

# Check for suspicious backtick content in configuration
grep -r '`' /etc/glances/ ~/.config/glances/ 2>/dev/null

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechGlances

  • SeverityHIGH

  • CVSS Score7.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Update

  • GitHub Release v4.5.3

  • GitHub Security Advisory GHSA-qhj7-v7h7-q4c7
  • Related CVEs
  • CVE-2026-33533: Glances Information Disclosure Vulnerability

  • CVE-2026-32610: Glances REST API CORS XSS Vulnerability

  • CVE-2026-30928: Glances Information Disclosure Vulnerability

  • CVE-2026-30930: Glances SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English