CVE-2024-35187 Stalwart Mail Server has privilege escalation by design
Attackers with code execution as the mail user can escalate to root due to improper privilege management in Stalwart Mail Server.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-35187?
CVE-2024-35187 is a critical vulnerability in stalwartlabs mail-server, published on 16 May 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
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.
Weakness: CWE-863
Which versions are affected by CVE-2024-35187?
How do I fix CVE-2024-35187?
No fix has been published for CVE-2024-35187 yet. Limit exposure of the affected software until one is available.
Is CVE-2024-35187 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35187 exists.
Sources
Also known as GHSA-rwp5-f854-ppg6.