A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-12828

CVE-2024-12828: Webmin CGI Command Injection RCE Flaw

CVE-2024-12828 is a command injection RCE vulnerability in Webmin that allows authenticated attackers to execute arbitrary code as root. This article covers the technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2024-12828 Overview

CVE-2024-12828 is a command injection vulnerability in Webmin that allows authenticated remote attackers to execute arbitrary code as root. The flaw resides in the handling of CGI requests within the Authentic Theme component. Webmin fails to properly validate a user-supplied string before passing it to a system call, enabling shell command injection [CWE-78]. The Zero Day Initiative tracked this issue as ZDI-CAN-22346 and published advisory ZDI-24-1725. Webmin version 2.104 is confirmed affected.

Critical Impact

Authenticated attackers can achieve root-level remote code execution on affected Webmin installations, gaining full control of the underlying Linux or Unix host.

Affected Products

  • Webmin 2.104
  • Webmin Authentic Theme (vulnerable authentic-lib.pl autocomplete handler)
  • Webmin deployments exposing the management interface over the network

Discovery Timeline

  • 2024-12-30 - CVE-2024-12828 published to NVD
  • 2025-08-14 - Last updated in NVD database

Technical Details for CVE-2024-12828

Vulnerability Analysis

The vulnerability is an OS command injection flaw [CWE-78] in Webmin's CGI request handling. When the Authentic Theme processes the xhr-get_autocompletes request, it passes user-controlled parameters to a function that ultimately invokes a system shell call. Because the input string is not sanitized or escaped, an attacker who supplies crafted shell metacharacters can break out of the intended argument context. The resulting command executes with the privileges of the Webmin process, which typically runs as root. Successful exploitation grants the attacker arbitrary command execution on the host.

Exploitation requires valid authentication to the Webmin interface, which limits opportunistic attacks but does not prevent abuse by low-privileged users, compromised accounts, or attackers who have obtained credentials through phishing or credential reuse. The EPSS score of 21.7% places this CVE in the 95th percentile, indicating elevated likelihood of exploitation activity relative to the broader CVE population.

Root Cause

The root cause is missing input validation in the autocomplete handler within authentic-lib.pl. The get_autocomplete_shell function processed xhr-get_autocomplete_type and xhr-get_autocomplete_string parameters and used them to execute a system call without first dropping privileges or sanitizing shell metacharacters.

Attack Vector

An authenticated attacker sends a crafted HTTP request to the Webmin CGI endpoint that handles autocomplete queries. By injecting shell metacharacters such as backticks, semicolons, or command substitution syntax into the autocomplete parameters, the attacker forces the server to execute attacker-controlled commands as root.

text
// Security patch in authentic-lib.pl - adds privilege drop before autocomplete execution
            flush_file_lines($file);
            print convert_to_json($history);
        } elsif ($in{'xhr-get_autocompletes'} eq '1') {
+           switch_to_remote_user_safe();
            my @data =
              get_autocomplete_shell($in{'xhr-get_autocomplete_type'}, $in{'xhr-get_autocomplete_string'});
            print convert_to_json(\@data);

Source: Webmin Authentic Theme commit 61e5b10. The patch introduces a call to switch_to_remote_user_safe() before invoking get_autocomplete_shell, ensuring the shell command runs under the authenticated user's context rather than as root.

Detection Methods for CVE-2024-12828

Indicators of Compromise

  • HTTP POST requests to Webmin endpoints containing xhr-get_autocompletes=1 accompanied by shell metacharacters (;, |, `, $()) in xhr-get_autocomplete_type or xhr-get_autocomplete_string parameters.
  • Unexpected child processes spawned by the miniserv.pl Webmin daemon, such as sh, bash, curl, wget, or nc.
  • New cron entries, SSH keys, or user accounts created shortly after Webmin authentication events.

Detection Strategies

  • Inspect Webmin access logs at /var/webmin/miniserv.log for autocomplete requests containing non-alphanumeric payloads.
  • Monitor process ancestry on Webmin hosts to identify shell invocations descending from the Webmin Perl process.
  • Correlate authentication events with subsequent process creation to flag command-injection patterns following legitimate logins.

Monitoring Recommendations

  • Forward Webmin web logs and Linux audit logs to a centralized SIEM for cross-source correlation.
  • Alert on outbound network connections initiated by child processes of miniserv.pl.
  • Track file integrity on /etc/passwd, /etc/shadow, ~/.ssh/authorized_keys, and crontabs on Webmin servers.

How to Mitigate CVE-2024-12828

Immediate Actions Required

  • Upgrade Webmin to a version later than 2.104 that includes the Authentic Theme patch from commit 61e5b10.
  • Restrict access to the Webmin management interface (default TCP port 10000) to trusted administrative networks only.
  • Audit Webmin user accounts and rotate credentials for any account that may have been used by untrusted parties.

Patch Information

The fix is delivered in the Authentic Theme via commit 61e5b10227b50407e3c6ac494ffbd4385d1b59df, which adds a switch_to_remote_user_safe() call before the autocomplete shell invocation. Additional details are available in the Zero Day Initiative Advisory ZDI-24-1725.

Workarounds

  • Place the Webmin interface behind a VPN or IP allowlist to eliminate exposure to untrusted networks.
  • Disable or restrict the autocomplete functionality in the Authentic Theme until patches can be applied.
  • Enforce strong, unique credentials and multi-factor authentication on all Webmin accounts to reduce the risk of authenticated exploitation.
bash
# Configuration example - restrict Webmin access via iptables to a trusted management subnet
iptables -A INPUT -p tcp --dport 10000 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 10000 -j DROP

# Verify Authentic Theme version after patching
grep -R "switch_to_remote_user_safe" /usr/share/webmin/authentic-theme/authentic-lib.pl

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWebmin

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability21.72%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/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
  • Zero Day Initiative Advisory ZDI-24-1725
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2022-0824: Webmin RCE Vulnerability via Access Control

  • CVE-2020-35606: Webmin Package Updates RCE Vulnerability

  • CVE-2025-61541: Webmin Auth Bypass Vulnerability

  • CVE-2022-0829: Webmin Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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