CVE-2023-26490

Public Exploit
mailcow is vulnerable to shell command injection via xoauth2 authentication in imapsync​

Description

mailcow is a dockerized email package, with multiple containers linked in one bridged network. The Sync Job feature - which can be made available to standard users by assigning them the necessary permission - suffers from a shell command injection. A malicious user can abuse this vulnerability to obtain shell access to the Docker container running dovecot. The imapsync Perl script implements all the necessary functionality for this feature, including the XOAUTH2 authentication mechanism. This code path creates a shell command to call openssl. However, since different parts of the specified user password are included without any validation, one can simply execute additional shell commands. Notably, the default ACL for a newly-created mailcow account does not include the necessary permission. The Issue has been fixed within the 2023-03 Update (March 3rd 2023). As a temporary workaround the Syncjob ACL can be removed from all mailbox users, preventing from creating or changing existing Syncjobs.

Category

7.3
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.80% Top 30%
Third-Party Advisory github.com
Affected: mailcow mailcow-dockerized
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-26490?
CVE-2023-26490 has been scored as a high severity vulnerability.
How to fix CVE-2023-26490?
To fix CVE-2023-26490, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-26490 being actively exploited in the wild?
It is possible that CVE-2023-26490 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-26490?
CVE-2023-26490 affects mailcow mailcow-dockerized.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.