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-35187

CVE-2024-35187: Stalwart Mail Server RCE Vulnerability

CVE-2024-35187 is a remote code execution flaw in Stalwart Mail Server that allows attackers to escalate privileges from the stalwart-mail user to complete root access. This post covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-35187 Overview

Stalwart Mail Server contains an authorization flaw that allows attackers with code execution as the stalwart-mail user to escalate to full root privileges on the host system. The vulnerability affects all versions prior to 0.8.0. Although the service runs under a dedicated unprivileged user account, the process retains the ability to restore full privileges trivially. This negates the isolation typically provided by service account separation. Administrators who delegated mail server admin credentials without intending to grant root access are exposed, as are users whose servers are compromised through any other arbitrary code execution vector. The issue is categorized under CWE-863: Incorrect Authorization.

Critical Impact

An attacker with stalwart-mail user code execution or admin web interface access can obtain complete root control of the underlying host.

Affected Products

  • Stalwart Mail Server versions prior to 0.8.0
  • Deployments where the stalwart-mail service user has retained privilege-restoration capabilities
  • Systems exposing the Stalwart admin web interface to untrusted operators

Discovery Timeline

  • 2024-05-16 - CVE-2024-35187 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-35187

Vulnerability Analysis

Stalwart Mail Server runs as a dedicated stalwart-mail system user. This pattern normally confines a compromise to the service account and prevents lateral movement into the broader operating system. The implementation prior to version 0.8.0 leaves capabilities or privilege-restoration mechanisms accessible to the running process. An attacker who reaches code execution within the mail server context can invoke these mechanisms to regain root. The flaw converts a service-scoped compromise into a full host takeover, breaking the security boundary that the separate user account was intended to enforce.

Root Cause

The root cause is an incorrect authorization model [CWE-863] in the privilege management of the Stalwart process. The service drops to the stalwart-mail user but does not permanently relinquish the ability to elevate. Mechanisms that allow re-acquiring root remain available to any code running in the process. This makes the user separation a cosmetic boundary rather than a security boundary.

Attack Vector

Exploitation requires either administrative access to the Stalwart admin web interface or arbitrary code execution within the stalwart-mail service through a separate vulnerability. From that position, the attacker triggers the available privilege restoration path to run code as root. The scope changes from the constrained service account to the entire operating system, including all other services, user data, and configuration. Refer to the GitHub Security Advisory GHSA-rwp5-f854-ppg6 for vendor-supplied technical details.

Detection Methods for CVE-2024-35187

Indicators of Compromise

  • Processes spawned by stalwart-mail running with effective UID 0
  • Unexpected modifications to /etc/passwd, /etc/shadow, /etc/sudoers, or systemd unit files following Stalwart activity
  • New cron jobs, SSH authorized keys, or setuid binaries created after mail server admin logins
  • Outbound network connections from root-owned child processes of the Stalwart service

Detection Strategies

  • Monitor for child processes of stalwart-mail that transition to root via setuid, setresuid, or capability operations
  • Audit Stalwart admin web interface authentication events and correlate with subsequent shell or process activity on the host
  • Alert on Stalwart versions below 0.8.0 discovered through software inventory scans

Monitoring Recommendations

  • Enable Linux audit rules on execve, setuid, and capability syscalls scoped to the stalwart-mail user
  • Forward host telemetry to a centralized analytics platform and apply behavioral rules for service-to-root escalation patterns
  • Track integrity of system files and service unit definitions on mail server hosts

How to Mitigate CVE-2024-35187

Immediate Actions Required

  • Upgrade Stalwart Mail Server to version 0.8.0 or later on all affected hosts
  • Rotate Stalwart admin credentials and any secrets accessible to the mail server process
  • Review recent admin web interface logins for unauthorized activity
  • Audit hosts for persistence artifacts created since the vulnerable version was deployed

Patch Information

Version 0.8.0 contains the fix. Apply the upgrade as documented in the Stalwart GitHub Security Advisory. After upgrading, validate that the service no longer retains the capabilities required to regain root privileges.

Workarounds

  • Restrict access to the Stalwart admin web interface to trusted networks and operators only
  • Run Stalwart inside a container, namespace, or sandbox that drops Linux capabilities such as CAP_SETUID and CAP_SYS_ADMIN
  • Apply systemd hardening directives such as NoNewPrivileges=yes, CapabilityBoundingSet=, and AmbientCapabilities= to the Stalwart service unit
bash
# Example systemd hardening for the Stalwart service unit
[Service]
User=stalwart-mail
Group=stalwart-mail
NoNewPrivileges=yes
CapabilityBoundingSet=
AmbientCapabilities=
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
RestrictSUIDSGID=yes

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechStalwart Mail

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-863
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
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