# CVE-2024-35179: Unprivileged Stalwart Mail Server user can read files as root

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- 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.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-05-15T15:55:28.261Z
- Modified: 2026-06-17T07:34:29.600Z
- Weaknesses: CWE-271
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(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-5pfx-j27j-4c6h>

## Sources

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

---

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