{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35179 exists.","fix":"No fix has been published for CVE-2024-35179 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-35179 is a medium-severity vulnerability in stalwartlabs mail-server, published on 15 May 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35179 and fix it if it is affected.\n\nWhat it is: CVE-2024-35179 is a medium-severity vulnerability in stalwartlabs mail-server, published on 15 May 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35179 exists.\n\nAffected product: stalwartlabs mail-server. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35179/ (Markdown: https://insights.sbomify.com/CVE-2024-35179/index.md)","id":"CVE-2024-35179","markdown":"https://insights.sbomify.com/CVE-2024-35179/index.md","name":"CVE-2024-35179","record":{"aliases":["GHSA-5pfx-j27j-4c6h"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Stalwart Mail Server","requires_auth":"high_privilege","summary":"Unprivileged admins can read arbitrary files as root when RUN_AS_USER is configured, enabling privilege escalation and data exposure.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-271","name":"Privilege Dropping / Lowering Errors"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Unprivileged Stalwart Mail Server user can read files as root","id":"CVE-2024-35179","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"OMERO.web JSONP callback vulnerability","id":"CVE-2024-35180"},"packages":[],"prev":{"headline":"Jupyter server on Windows discloses Windows user password hash","id":"CVE-2024-35178"},"products":["mail-server"],"published":"2024-05-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["stalwartlabs"]},"summary":"Unprivileged admins can read arbitrary files as root when RUN_AS_USER is configured, enabling privilege escalation and data exposure.","url":"https://insights.sbomify.com/CVE-2024-35179/"}