← Vulnerability feed

Vulnerability record · CVE-2022-31138 · published 11 July 2022

CVE-2022-31138: Mailcow\ os command injection vulnerability

MMailcow · Mailcow\

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.

8.8 CVSS 3.1 High EPSS 3.3% · top 12.1% CWE-78 · OS command injection
8.8CVSS 3.1 base score, v2 9.0
3.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-31138 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2025-25198Mailcow\ open redirect vulnerabilitymailcow: dockerized is an open source groupware/email suite based on docker. Prior to version 2025-01a, a vulnerability in mailcow's password reset f…EPSS 1.1%8.8CVE-2023-34108Mailcow\ os command injection vulnerabilitymailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI for user/server administration…EPSS 0.98%8.8CVE-2023-26490Mailcow\ os command injection vulnerabilitymailcow is a dockerized email package, with multiple containers linked in one bridged network. The Sync Job feature - which can be made available to …EPSS 2.2%8.8CVE-2022-31245Mailcow\ os command injection vulnerabilitymailcow before 2022-05d allows a remote authenticated user to inject OS commands and escalate privileges to domain admin via the --debug option in co…EPSS 5.4%8.8CVE-2017-8928Mailcow\ cross-site request forgery vulnerabilitymailcow 0.14, as used in "mailcow: dockerized" and other products, has CSRF.EPSS 2.0%8.2CVE-2022-39258Mailcow\ information exposure vulnerabilitymailcow is a mailserver suite. A vulnerability innversions prior to 2022-09 allows an attacker to craft a custom Swagger API template to spoof Author…EPSS 1.8%7.3CVE-2024-24760Mailcow\ vulnerabilitymailcow is a dockerized email package, with multiple containers linked in one bridged network. A security vulnerability has been identified in mailco…EPSS 0.87%7.2CVE-2025-53909Mailcow\ vulnerabilitymailcow: dockerized is an open source groupware/email suite based on docker. A Server-Side Template Injection (SSTI) vulnerability exists in versions…EPSS 0.46%

Source: NIST National Vulnerability Database (record CVE-2022-31138), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.