CVE-2024-35187: Stalwart Mail Server has privilege escalation by design

Published May 16, 2024
·
Updated

Stalwart Mail Server is an open-source mail server. Prior to version 0.8.0, attackers who achieved Arbitrary Code Execution as the stalwart-mail user (including web interface admins) can gain complete root access to the system. Usually, system services are run as a separate user (not as root) to isolate an attacker with Arbitrary Code Execution to the current service. Therefore, other system services and the system itself remains protected in case of a successful attack. stalwart-mail runs as a separate user, but it can give itself full privileges again in a simple way, so this protection is practically ineffective. Server admins who handed out the admin credentials to the mail server, but didn't want to hand out complete root access to the system, as well as any attacked user when the attackers gained Arbitrary Code Execution using another vulnerability, may be vulnerable. Version 0.8.0 contains a patch for the issue.

Affected Software

1 affected component
Stalwart Mail Server<0.8.0

Event History

May 16, 2024
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-35187?

CVE-2024-35187 is considered a critical vulnerability due to its potential for arbitrary code execution and complete system compromise.

2

How do I fix CVE-2024-35187?

To mitigate CVE-2024-35187, update Stalwart Mail Server to version 0.8.0 or later as it resolves the vulnerability.

3

What type of vulnerability is CVE-2024-35187?

CVE-2024-35187 is classified as an arbitrary code execution vulnerability affecting Stalwart Mail Server prior to version 0.8.0.

4

Who is at risk from CVE-2024-35187?

Any users or administrators operating pre-0.8.0 versions of Stalwart Mail Server are at risk from CVE-2024-35187.

5

Can CVE-2024-35187 be exploited remotely?

Yes, CVE-2024-35187 can be exploited by remote attackers with access to the web interface, allowing for escalated privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203