Read the docs
TI-2024-20581 Aliases CVE-2024-31204

mailcow Cross-site Scripting Vulnerability via Exception Handler

Priority MEDIUM 40CWE-79Published · Updated

Key facts

Attack vector
Adjacent network
Privileges required
Low
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

mailcow: dockerized is an open source groupware/email suite based on docker. A security vulnerability has been identified in mailcow affecting versions prior to 2024-04. This vulnerability resides in the exception handling mechanism, specifically when not operating in DEV_MODE. The system saves exception details into a session array without proper sanitization or encoding. These details are later rendered into HTML and executed in a JavaScript block within the user's browser, without adequate escaping of HTML entities. This flaw allows for Cross-Site Scripting (XSS) attacks, where attackers can inject malicious scripts into the admin panel by triggering exceptions with controlled input. The exploitation method involves using any function that might throw an exception with user-controllable argument. This issue can lead to session hijacking and unauthorized administrative actions, posing a significant security risk. Version 2024-04 contains a fix for the issue.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.08249 94th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed mailcow-dockerized (mailcow): 2024-04

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
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 2024-042024-04Patch availableCNA
  • mailcow-dockerized Vendormailcow Affected before 2024-04 Fixed in 2024-04 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 2024-04

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-31204

References

  • TI-2022-13182 OS Command Injection in mailcow CVSS 3.1HIGH 8.8
  • 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
See all 15 →

Sources

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