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
    • 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-2021-31760

CVE-2021-31760: Webmin CSRF to RCE Vulnerability

CVE-2021-31760 is a Cross Site Request Forgery flaw in Webmin 1.973 that enables attackers to achieve remote code execution via the running process feature. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-31760 Overview

CVE-2021-31760 is a Cross-Site Request Forgery (CSRF) vulnerability affecting Webmin version 1.973 that can be chained to achieve Remote Command Execution (RCE). The vulnerability exists in Webmin's running process feature, allowing attackers to craft malicious requests that execute arbitrary commands on the target server when an authenticated administrator visits a specially crafted page.

Critical Impact

This vulnerability allows unauthenticated attackers to execute arbitrary commands with the privileges of the Webmin service (typically root) by tricking an authenticated administrator into visiting a malicious webpage, leading to complete system compromise.

Affected Products

  • Webmin 1.973

Discovery Timeline

  • April 25, 2021 - CVE-2021-31760 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-31760

Vulnerability Analysis

This vulnerability combines two dangerous attack techniques: Cross-Site Request Forgery (CSRF) and Remote Command Execution. Webmin's running process feature lacks proper CSRF protections, allowing malicious actors to submit forged requests on behalf of authenticated administrators. When an administrator with an active Webmin session visits a malicious webpage, the attacker can leverage this weakness to execute system commands through the process management functionality.

The attack requires no prior authentication from the attacker—only that a victim administrator be logged into Webmin and visit an attacker-controlled page. Given that Webmin typically runs with elevated privileges to manage system services, successful exploitation grants the attacker root-level command execution capabilities on the underlying server.

Root Cause

The root cause of CVE-2021-31760 is the absence of CSRF protection tokens in the running process feature of Webmin. The application fails to validate that requests to execute processes originate from legitimate user actions within the Webmin interface. Without anti-CSRF tokens or proper origin validation, the server cannot distinguish between legitimate administrative requests and forged requests initiated by malicious external websites.

Attack Vector

The attack is network-based and requires user interaction—specifically, an authenticated Webmin administrator must visit a malicious webpage while logged in. The attacker crafts an HTML page containing hidden forms or JavaScript that automatically submits requests to the victim's Webmin instance. These requests target the process execution functionality, passing attacker-controlled command parameters. Because the victim's browser automatically includes authentication cookies with the request, Webmin processes it as a legitimate administrative action.

The attack flow is as follows: The attacker hosts a malicious page containing auto-submitting forms targeting the Webmin running process endpoint. When an authenticated administrator visits this page, their browser sends the forged request with valid session credentials. Webmin executes the command specified in the request, granting the attacker remote code execution with Webmin's privileges.

For technical details and proof-of-concept implementations, see the GitHub PoC Repository and the GitHub Exploit Repository.

Detection Methods for CVE-2021-31760

Indicators of Compromise

  • Unexpected process executions initiated through Webmin's process management interface
  • Webmin access logs showing requests to process execution endpoints with unusual referrer headers or from external origins
  • Authentication sessions with anomalous activity patterns, particularly command execution immediately following external page visits
  • Reverse shell connections or outbound network connections from the Webmin server to unknown IP addresses

Detection Strategies

  • Monitor Webmin access logs for requests to /proc/run.cgi or similar process execution endpoints with external or missing Referer headers
  • Implement network-based detection for HTTP requests to Webmin that originate from cross-origin sources
  • Configure SIEM rules to alert on command execution activity in Webmin that correlates with suspicious browsing patterns
  • Deploy endpoint detection solutions to identify unexpected child processes spawned by the Webmin service

Monitoring Recommendations

  • Enable detailed access logging in Webmin and forward logs to a centralized SIEM solution
  • Implement browser-based security controls to prevent cross-origin form submissions to internal administrative interfaces
  • Monitor for unusual outbound connections from servers running Webmin, particularly to untrusted IP addresses
  • Establish baseline behavior for Webmin process execution and alert on deviations

How to Mitigate CVE-2021-31760

Immediate Actions Required

  • Upgrade Webmin to the latest version that includes CSRF protections
  • Restrict network access to Webmin administrative interfaces using firewall rules or VPN requirements
  • Ensure administrators only access Webmin from trusted, isolated browser sessions
  • Implement additional authentication layers such as IP whitelisting or multi-factor authentication for Webmin access

Patch Information

Organizations should upgrade to a patched version of Webmin that addresses the CSRF vulnerability. Check the Webmin Project Repository for the latest releases and security updates. Given the severity of this vulnerability allowing unauthenticated remote code execution, patching should be treated as a critical priority.

Workarounds

  • Restrict Webmin access to trusted IP addresses only via firewall rules or Webmin's built-in IP access control
  • Disable the running process feature if not required for operations
  • Use a dedicated browser profile for Webmin administration that has no other tabs or sessions open
  • Deploy a reverse proxy with additional CSRF protection headers in front of Webmin
bash
# Example: Restrict Webmin access to specific IP addresses using iptables
iptables -A INPUT -p tcp --dport 10000 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 10000 -j DROP

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechWebmin

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability39.87%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-352
  • Technical References
  • GitHub PoC Repository

  • GitHub Exploit Repository

  • Webmin Project Repository

  • YouTube Video Overview
  • Related CVEs
  • CVE-2024-12828: Webmin CGI Command Injection RCE Vulnerability

  • CVE-2022-0829: Webmin Auth Bypass Vulnerability

  • CVE-2022-0824: Webmin RCE Vulnerability via Access Control

  • CVE-2020-35606: Webmin Package Updates RCE 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