{"id":"CVE-2024-35179","state":"PUBLISHED","title":"Unprivileged Stalwart Mail Server user can read files as root","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.","publishedAt":"2024-05-15T15:55:28.261Z","updatedAt":"2024-08-02T03:07:46.933Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["stalwartlabs mail-server"],"affected":[{"vendor":"stalwartlabs","product":"mail-server","versions":[{"version":"< 0.8.0","status":"affected"}]}],"references":["https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h"],"weaknesses":["CWE-271"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35179.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-35179","state":"PUBLISHED","datePublished":"2024-05-15T15:55:28.261Z","dateUpdated":"2024-08-02T03:07:46.933Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-05-10T14:24:24.338Z"},"containers":{"cna":{"title":"Unprivileged Stalwart Mail Server user can read files as root","descriptions":[{"lang":"en","value":"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":[{"vendor":"stalwartlabs","product":"mail-server","versions":[{"version":"< 0.8.0","status":"affected"}]}],"references":[{"url":"https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h","name":"https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-271","lang":"en","description":"CWE-271: Privilege Dropping / Lowering Errors","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-05-15T15:55:28.261Z"},"source":{"advisory":"GHSA-5pfx-j27j-4c6h","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"stalwartlabs","product":"mail-server","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"0.8.0","versionType":"custom"}],"cpes":["cpe:2.3:a:stalwartlabs:mail-server:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-05-15T18:11:30.074795Z","id":"CVE-2024-35179","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-18T19:38:19.898Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h","name":"https://github.com/stalwartlabs/mail-server/security/advisories/GHSA-5pfx-j27j-4c6h","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:07:46.933Z"}}]}}}