Read the docs
TI-2022-13182 Aliases CVE-2022-31138

OS Command Injection in mailcow

Priority HIGH 73CWE-78Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0328 88th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed mailcow-dockerized (mailcow): 2022-06a

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

VendorProductAffected versionsFixed inStatusSource
mailcowmailcow-dockerizedbefore 2022-06a2022-06aPatch availableCNA
  • mailcow-dockerized Vendormailcow Affected before 2022-06a Fixed in 2022-06a Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mailcow:mailcow\:_dockerized:*:*:*:*:*:*:*:*_dockerizedVulnerablemailcow
  • cpe:2.3:a:mailcow:mailcow\:_dockerized:*:*:*:*:*:*:*:* Versions _dockerized Vulnerable ·mailcow

Remediation

  • Fix · CNA mailcow-dockerized (mailcow) Fixed in 2022-06a

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31138

References

  • 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
See all 15 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences