What’s Vulnerable › Vulnerabilities
CVE-2024-35179: Unprivileged Stalwart Mail Server user can read files as root
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-15 · updated 2026-06-17
- Weakness: CWE-271
Description
Stalwart Mail Server is an open-source mail server. Prior to version 0.8.0, when using `RUN_AS_USER`, the specified user (and therefore, web interface admins) can read arbitrary files as root. This issue affects admins who have set up to run stalwart with `RUN_AS_USER` who handed out admin credentials to the mail server but expect these to only grant access according to the `RUN_AS_USER` and are attacked where the attackers managed to achieve Arbitrary Code Execution using another vulnerability. Version 0.8.0 contains a patch for the issue.
Affected products
- stalwartlabs mail-server: before 0.8.0 — fixed in 0.8.0
How to fix
Upgrade to a fixed version: stalwartlabs mail-server 0.8.0. Check the vendor advisory for mitigations.
References
- https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h
- https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h
Get alerted when CVE-2024-35179 or the next vulnerability affects your stack