# CVE-2023-26490: mailcow is vulnerable to shell command injection via xoauth2 authentication in imapsync​

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.22%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-03T23:37:03.105Z
- Modified: 2026-06-17T05:43:27.163Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mailcow mailcow-dockerized: < 2023-03
- mailcow mailcow:_dockerized: before 2023-03

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-3j2f-wf52-cjg7> (exploit, third-party-advisory)
- <https://github.com/mailcow/mailcow-dockerized/releases/tag/2023-03> (release-notes)

## Sources

- CVE List: [CVE-2023-26490](https://www.cve.org/CVERecord?id=CVE-2023-26490), CVE Terms of Use, modified 2025-02-25
- NVD: [CVE-2023-26490](https://nvd.nist.gov/vuln/detail/CVE-2023-26490), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26490 · Whole record: https://cve.day/CVE-2023-26490.json · Rebuilt by cve.day 2026-11-25T22:58:22.272Z
