CVE-2022-31138: OS Command Injection in mailcow

Published Jul 11, 2022
·
Updated

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.

Affected Software

1 affected component
Mailcow Mailcow\<2022-06a

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mailcow-dockerized to a version that resolves this vulnerability.

    Fixed in 2022-06a
  2. Configuration

    As a temporary workaround, remove the Syncjob ACL from all mailbox users to prevent changes to those settings.

    mailbox users Syncjob ACL = removed

Event History

Jul 11, 2022
Exploit Published
via GitHub·06:53 AM
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
DescriptionSeverityWeakness
Event
02:15 PM

Frequently Asked Questions

1

What is CVE-2022-31138?

CVE-2022-31138 is an extended privilege vulnerability in mailcow-dockerized version 2022-06a.

2

How can CVE-2022-31138 be exploited?

CVE-2022-31138 can be exploited by manipulating certain custom parameters in the mailcow software.

3

What is the severity of CVE-2022-31138?

CVE-2022-31138 has a severity rating of critical (8.8).

4

Which versions of mailcow-dockerized are affected by CVE-2022-31138?

mailcow-dockerized version 2022-06a is affected by CVE-2022-31138.

5

How can I fix CVE-2022-31138?

To fix CVE-2022-31138, update mailcow-dockerized to a version that includes the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203