OS Command Injection in mailcow
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
mailcow is a mailserver suite. Prior to mailcow-dockerized version 2022-06a, an extended privilege vulnerability can be exploited by manipulating the custom parameters regexmess, skipmess, regexflag, delete2foldersonly, delete2foldersbutnot, regextrans2, pipemess, or maxlinelengthcmd to execute arbitrary code. Users should update their mailcow instances with the `update.sh` script in the mailcow root directory to 2022-06a or newer to receive a patch for this issue. As a temporary workaround, the Syncjob ACL can be removed from all mailbox users, preventing changes to those settings.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA mailcow-dockerized (mailcow) Fixed in 2022-06a
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31138
References
Patch 1
More Mailcow vulnerabilities
- TI-2022-18634 mailcow-dockerized critical information misrepresentation can lead to phishing attacks through Swagger UI CVSS 3.1HIGH 8.2
- TI-2024-15818 mailcow ipixel flood attack leads to Denial of Service in admin page CVSS 3.1MEDIUM 4.7
- TI-2024-20015 mailcow Path Traversal and Arbitrary Code Execution Vulnerability CVSS 3.1MEDIUM 6.2
- TI-2023-11637 mailcow is vulnerable to shell command injection via xoauth2 authentication in imapsync CVSS 3.1HIGH 8.8
- TI-2022-13278 mailcow before 2022-05d allows a remote authenticated user to inject OS commands and… CVSS 3.1HIGH 8.8
- TI-2024-16277 Mailcow Docker Container Exposure to Local Network CVSS 3.1HIGH 8.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences