Arbitrary Code Execution in mailcow-dockerized via Syncjob Parameters
A vulnerability in mailcow-dockerized prior to version 2022-06a allows attackers to execute arbitrary code by manipulating specific Syncjob parameters (regexmess, skipmess, regexflag, delete2foldersonly, delete2foldersbutnot, regextrans2, pipemess, or maxlinelengthcmd). The vulnerability arises from insufficient sanitization of these parameters, which are user-controllable and can be abused to inject and execute code on the server.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker with access to Syncjob settings to execute arbitrary code on the mailcow server, potentially leading to full system compromise, data exfiltration, or further lateral movement within the environment.
If you can’t patch tonight, do this now.
As a temporary mitigation, remove the Syncjob ACL from all mailbox users to prevent them from modifying the vulnerable parameters until the patch can be applied.
Patch, then assume compromise.
Update mailcow-dockerized to version 2022-06a or later using the provided update.sh script in the mailcow root directory. This version includes a patch that addresses the parameter sanitization issue.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.