{"id":"CVE-2026-85749","summary":"MailWatch: IDOR lets any authenticated user release or delete another tenant's quarantined mail","details":"MailWatch for MailScanner is a web-based front-end to MailScanner. Prior to 1.2.27, any authenticated MailWatch user, including the U/user, D/domain-admin, and H/host roles, can release to inbox or permanently delete the quarantined mail of any other user or domain by supplying an arbitrary message `id` to `mailscanner/quarantine_action.php`. The action path calls `quarantine_list_items()` in `mailscanner/functions.php`, which selects from `maillog` by the supplied identifier without the per-role `global_filter` applied by listing and read views. The action requires a valid session and CSRF token, but the caller can submit a token from the caller's own session; ownership of the requested message is never checked. Message identifiers are enumerable, allowing a low-privilege user to invoke `quarantine_release()` or `quarantine_delete()` for other users' or domains' quarantined messages, force-delivering mail held by the quarantine or permanently deleting it. This issue is fixed in version 1.2.27.","aliases":["GHSA-w7v5-7g6w-87r4"],"modified":"2026-10-31T02:31:04.676524702Z","published":"2026-10-28T22:37:38.513Z","database_specific":{"cwe_ids":["CWE-566","CWE-639"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85749.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/mailwatch/MailWatch/releases/tag/v1.2.27"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85749.json"},{"type":"ADVISORY","url":"https://github.com/mailwatch/MailWatch/security/advisories/GHSA-w7v5-7g6w-87r4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85749"},{"type":"FIX","url":"https://github.com/mailwatch/MailWatch/commit/bc04f25eb0cec028cbd4ded9c049cfc6f663a15f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mailwatch/mailwatch","events":[{"introduced":"0"},{"fixed":"48771e9ad27c720e5c7895ba798024e1274f1278"},{"fixed":"bc04f25eb0cec028cbd4ded9c049cfc6f663a15f"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.2.27"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"bc04f25eb0cec028cbd4ded9c049cfc6f663a15f"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.2.27","range":[{"fixed":"48771e9ad27c720e5c7895ba798024e1274f1278"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.2.26","v1.2.25","1.2.25","v1.2.24","v1.2.23","v1.2.22","v1.2.21","v1.2.20","v1.2.19","v1.2.18","v1.2.17","v1.2.16","v1.2.15","v1.2.14","v1.2.13","v1.2.12","v1.2.11","v1.2.10","v1.2.9","v1.2.8","v1.2.7","v1.2.6","v1.2.5","v1.2.4","v1.2.3","v1.2.2","v1.2.1","v1.2.0","v1.2.0-rc.5","v1.2.0-rc.4","v1.2.0-rc.3","v1.2.0-rc.2","v1.2.0-rc.1","1.2.0-beta8","1.2.0-beta7","1.2.0-beta6","1.2.0-beta5","1.2.0-beta4-patch4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85749.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}