CVE-2025-52691

SmarterMail Unrestricted File Upload Exploitation (CVE-2025-52691)

Detects exploitation of CVE-2025-52691, an unrestricted file upload vulnerability in SmarterTools SmarterMail. This vulnerability allows attackers to upload files with dangerous types (e.g., web shells, executables) to the mail server, potentially enabling remote code execution. This CVE is listed in CISA's Known Exploited Vulnerabilities catalog.

Vulnerability Intelligence

KEV — Known Exploited

CVSS

Unscored
Write-up coming soon

What is CVE-2025-52691 SmarterMail Unrestricted File Upload Exploitation (CVE-2025-52691)?

SmarterMail Unrestricted File Upload Exploitation (CVE-2025-52691) (CVE-2025-52691) maps to the Initial Access and Execution and Persistence tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for SmarterMail Unrestricted File Upload Exploitation (CVE-2025-52691), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint, Microsoft Sentinel DeviceFileEvents, Microsoft Sentinel DeviceProcessEvents. The queries below are rated critical severity at high confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Execution Persistence
Microsoft Sentinel / Defender
kusto
union DeviceFileEvents, DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where DeviceName has_any ("mail", "smartermail", "smtp")
| where (
    (ActionType == "FileCreated" and FileName matches regex @"\.(aspx|asp|php|jsp|cfm|cgi|pl|py|rb|sh|exe|dll|bat|cmd|ps1|vbs|hta)$"
      and FolderPath matches regex @"(?i)(smartermail|smarter\\mail|mailroot|webmail)")
    or
    (ActionType in ("ProcessCreated") and InitiatingProcessName =~ "SmarterMail.exe"
      and FileName in~ ("cmd.exe", "powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe", "certutil.exe", "rundll32.exe", "regsvr32.exe"))
  )
| extend RiskIndicator = case(
    ActionType == "FileCreated" and FileName matches regex @"\.(aspx|asp|php|jsp)$", "WebShellDrop",
    ActionType == "ProcessCreated" and InitiatingProcessName =~ "SmarterMail.exe", "SuspiciousChildProcess",
    "UnknownUpload"
  )
| project TimeGenerated, DeviceName, ActionType, FileName, FolderPath, InitiatingProcessName, InitiatingProcessCommandLine, RiskIndicator, AccountName

Detects suspicious file creation with dangerous extensions under SmarterMail directories, or suspicious child processes spawned by the SmarterMail process, indicating potential web shell upload or post-exploitation activity via CVE-2025-52691.

critical severity high confidence

Data Sources

Microsoft Defender for Endpoint Microsoft Sentinel DeviceFileEvents Microsoft Sentinel DeviceProcessEvents

Required Tables

DeviceFileEvents DeviceProcessEvents

False Positives

  • Legitimate administrative scripts deployed by IT staff to the SmarterMail directory
  • Antivirus or backup software creating temporary files with unusual extensions in mail directories
  • SmarterMail update processes creating new executables or DLLs during patching

Sigma rule & cross-platform mapping

The detection logic for SmarterMail Unrestricted File Upload Exploitation (CVE-2025-52691) (CVE-2025-52691) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: process_creation
  product: windows

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Simulate Web Shell Upload to SmarterMail Directory

    Expected signal: Sysmon Event ID 11 (FileCreate) with TargetFilename containing 'SmarterMail' and ending in '.aspx'; DeviceFileEvents in Defender with ActionType=FileCreated

  2. Test 2Simulate SmarterMail Spawning Suspicious Child Process

    Expected signal: Sysmon Event ID 1 (ProcessCreate) showing cmd.exe with parent process context; DeviceProcessEvents showing cmd.exe creation with CommandLine containing 'whoami'

  3. Test 3Upload Executable File to Simulated Mail Server Web Directory

    Expected signal: Sysmon Event ID 11 (FileCreate) with TargetFilename matching 'C:\Temp\mailroot\webmail\update.exe'; file hash telemetry for the copied executable

  4. Test 4Simulate PowerShell Execution via Web Shell Context

    Expected signal: Sysmon Event ID 1 (ProcessCreate) for powershell.exe with CommandLine containing reconnaissance commands; PowerShell Script Block Logging (Event ID 4104) if enabled

Unlock Pro Content

Get the full detection package for CVE-2025-52691 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections