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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.74%, higher than 55% of CVEs (2026-12-01)
- Published: 2024-05-16T15:16:57.797Z
- Modified: 2026-06-17T07:34:30.560Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- stalwartlabs mail-server: < 0.8.0; before 0.8.0

## References

- <https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-rwp5-f854-ppg6>

## Sources

- CVE List: [CVE-2024-35187](https://www.cve.org/CVERecord?id=CVE-2024-35187), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-35187](https://nvd.nist.gov/vuln/detail/CVE-2024-35187), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35187 · Whole record: https://cve.day/CVE-2024-35187.json · Rebuilt by cve.day 2026-11-25T22:58:40.454Z
