CVE-2024-31204 in Mailcow\
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 int...
Affects 1 product from 1 vendor. Facts below cite their sources.
Exploitable from adjacent network, high complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Mailcow | Mailcow\ | < 2024-04 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-31204 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-050628-M |
| CVSS vector | CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N |
| Published | 2024-04-04 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-79: Cross-Site Scripting (XSS)
Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.
Related attack patterns (CAPEC)
CAPEC-85 AJAX Footprinting via CWE-79
CAPEC-209 XSS Using MIME Type Mismatch via CWE-79
CAPEC-588 DOM-Based XSS via CWE-79
CAPEC-591 Reflected XSS via CWE-79
CAPEC-592 Stored XSS via CWE-79
Show all 6
CAPEC-63 Cross-Site Scripting (XSS) via CWE-79
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A security vulnerability in mailcow: dockerized affects versions prior to 2024-04, specifically in the exception handling mechanism when not in DEV_MODE. This vulnerability could allow an attacker to inject malicious data into session arrays, potentially leading to information disclosure or other security issues.
The vulnerability arises from the improper sanitization and encoding of exception details saved into session arrays. An attacker could exploit this by triggering exceptions and injecting malicious data, which could then be used to gain unauthorized access or disclose sensitive information.
Questions
What is CVE-2024-31204?
A security vulnerability in mailcow: dockerized affects versions prior to 2024-04, specifically in the exception handling mechanism when not in DEV_MODE. This vulnerability could allow an attacker to inject malicious data into session arrays, potentially leading to information disclosure or other security issues.
What is the CVSS score for CVE-2024-31204?
CVE-2024-31204 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N. EPSS: 0.8%.
Is CVE-2024-31204 actively exploited?
No confirmed active exploitation of CVE-2024-31204 as of 2026-09-25.
How do I remediate CVE-2024-31204?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2024-31204?
CVE-2024-31204 affects Mailcow Mailcow\.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Mailcow","product":"Mailcow\","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.