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-2026-49103

CVE-2026-49103: Webmin Path Traversal Vulnerability

CVE-2026-49103 is a path traversal vulnerability in Webmin before version 2.640 affecting the mailboxes component. Attackers can exploit unsafe filename construction in detachall.cgi. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 28, 2026

CVE-2026-49103 Overview

CVE-2026-49103 is a path traversal vulnerability in Webmin versions before 2.640. The flaw resides in the mailboxes/detachall.cgi component, which fails to safely construct filenames when saving email attachments. An authenticated attacker can craft a malicious email attachment with a manipulated filename to write files to arbitrary locations on the server. The issue is tracked under CWE-24: Path Traversal: '../filedir'.

Critical Impact

Authenticated attackers can write arbitrary files to the Webmin host filesystem, leading to potential remote code execution and full system compromise.

Affected Products

  • Webmin versions prior to 2.640
  • mailboxes/detachall.cgi component
  • mailboxes/detach.cgi component (related fix in same patch)

Discovery Timeline

  • 2026-05-27 - CVE-2026-49103 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-49103

Vulnerability Analysis

Webmin is a web-based system administration interface for Unix-like servers. The mailboxes/detachall.cgi script extracts attachments from email messages and writes them to a temporary directory. Before version 2.640, the script used attachment filenames directly from the MIME headers without sanitizing path separators or control characters. An attacker who can deliver email to a mailbox managed by Webmin, or who is authenticated to the Webmin interface, can use a crafted attachment filename to escape the temporary directory.

A related issue in mailboxes/detach.cgi allowed Scalable Vector Graphics (SVG) attachments to be served from the Webmin origin, enabling script execution in the browser context of an administrator.

Root Cause

The root cause is improper input validation of the filename parameter parsed from MIME attachment headers. The unpatched code concatenated the attacker-controlled filename directly into a file path used by open_tempfile, with no stripping of /, \, null bytes, or carriage returns.

Attack Vector

The attack requires network access to the Webmin interface and low-privilege authentication. An attacker submits or triggers processing of an email containing an attachment whose filename MIME parameter contains path traversal sequences such as ../../etc/cron.d/payload. When the administrator invokes the detach-all action, the file is written outside the intended directory.

text
# Patch in mailboxes/detachall.cgi - Fix unsafe mailbox attachment handling
 	else {
 		$fn = "file".(++$n).".".&type_to_extension($a->{'type'});
 		}
+	$fn =~ s/[\r\n\0]//g;
+	$fn =~ s/\\/\//g;
+	$fn =~ s/^.*\///g;
+	$fn =~ /^\.+$/ && ($fn = "");
+	$fn ||= "file".(++$n);
 
 	# Write the file
 	&open_tempfile(FILE, ">$temp/$fn", 0, 1);

Source: Webmin commit cf432879

The patch strips carriage returns, newlines, and null bytes, normalizes backslashes to forward slashes, removes all leading path components, and rejects dot-only filenames before passing the value to open_tempfile.

Detection Methods for CVE-2026-49103

Indicators of Compromise

  • Unexpected files appearing in directories outside the Webmin temporary attachment path, especially in /etc/cron.d/, /etc/cron.hourly/, or web-accessible directories
  • Email messages stored in Webmin mailboxes containing MIME attachments with filename parameters that include ../, backslashes, or null bytes
  • Modification of system configuration files coinciding with access to /mailboxes/detachall.cgi in Webmin access logs
  • New SVG files served from the Webmin origin via mailboxes/detach.cgi

Detection Strategies

  • Inspect Webmin access logs for POST and GET requests to mailboxes/detachall.cgi followed by file creation events outside the expected temp path
  • Hunt for MIME Content-Disposition headers in mail spools containing path traversal sequences in the filename attribute
  • Correlate Webmin authentication events with subsequent filesystem write activity in sensitive directories

Monitoring Recommendations

  • Enable filesystem integrity monitoring on /etc/, cron directories, and web roots on hosts running Webmin
  • Forward Webmin miniserv.log and webmin.log to a centralized logging platform for query and retention
  • Alert on Webmin process spawning unexpected child processes such as shells or interpreters

How to Mitigate CVE-2026-49103

Immediate Actions Required

  • Upgrade Webmin to version 2.640 or later on all managed hosts
  • Restrict network access to the Webmin administrative port using a firewall or VPN until patching is complete
  • Audit recent activity in mailboxes/detachall.cgi and review filesystem changes on affected servers
  • Rotate credentials for any Webmin accounts that may have been used during the exposure window

Patch Information

The fix is included in Webmin 2.640. The corrective code, found in commit cf432879, sanitizes attachment filenames by removing control characters, normalizing separators, and stripping directory components. The full diff between vulnerable and fixed releases is available in the Webmin 2.630 to 2.640 comparison.

Workarounds

  • Disable the Webmin mailbox module if email management is not required in your deployment
  • Limit Webmin user accounts with mailbox access to trusted administrators only
  • Place Webmin behind a reverse proxy that enforces strict authentication and inspects request paths
bash
# Verify installed Webmin version and upgrade on Debian/Ubuntu
dpkg -l | grep webmin
wget https://download.webmin.com/download/deb/webmin_2.640_all.deb
sudo dpkg -i webmin_2.640_all.deb

# RHEL/CentOS
rpm -q webmin
sudo rpm -Uvh webmin-2.640-1.noarch.rpm

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWebmin

  • SeverityCRITICAL

  • CVSS Score9.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-24
  • Technical References
  • GitHub Commit Change

  • GitHub Version Comparison
  • Related CVEs
  • CVE-2026-49102: Webmin XSS Vulnerability

  • CVE-2025-61541: Webmin Auth Bypass Vulnerability

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

  • 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