Skip to content

mailcow-dockerized

mailcow Cross-site Scripting Vulnerability via Exception Handler

CVE-2024-31204Published 4 Apr 2024, 20:37 UTC

Real-world risk

0.5/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
mailcow-dockerizedNiche< 2024-042024-04

What to do

Update to a fixed version: 2024-04.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionAdjacentSame Wi-Fi, Bluetooth range or network segmentFrom the CVSS vector0.40
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T2: Likely to be exploited (× 0.90)

EPSS probability at least 0.10, or EPSS percentile at least 0.95

EPSS 8.2% chance of exploitation in 30 days (percentile 95), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.076
  2. Threat T2: Likely to be exploited0.900
  3. 10 × impact 0.8 × prerequisites 0.0756 × threat 0.90.544
  4. Rounded to one decimal between 0.1 and 100.5

How the score works

Exploitation and evidence timeline

  1. 4 Apr 2024 Published
  2. 3 Dec 2026 Risk 0.5 (cvss fallback)

Weakness

CWE-79

References

Get alerts for mailcow-dockerized

Free email or text alerts when a vulnerability in mailcow-dockerized reaches risk 8 or higher. Nothing else.