CVE-2024-31204 | mailcow Cross-site Scripting Vulnerability via Exception Handler

Exp

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.

Published: 2024-04-04 Last update: 2025-10-06 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-31204 is rated High Exploit Risk (74.7/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 4.57%). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +4.22% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-31204

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-31204

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-11-21 0.35% 4.57% +4.22%
2 2025-11-18 4.57% 0.35% -4.22%
3 2025-10-17 4.57%

Full EPSS history (16 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-31204

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.1 3.1 MEDIUM
CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:A)
Attacker has to be nearby on the network—same office, same link, that vibe—not the whole wide internet.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
0.9 5.2 [email protected]

Weakness enumeration for CVE-2024-31204

Affected software / configurations for CVE-2024-31204

Vendor Product Version Raw CPE
mailcow mailcow:_dockerized < 2024-04 cpe:2.3:a:mailcow:mailcow\:_dockerized:*:*:*:*:*:*:*:*

References for CVE-2024-31204

cvelogic Threat Intelligence