THREATPORT/VULNERABILITY/CVE-2024-31204
MEDIUM SEVERITY

CVE-2024-31204

Mailcow\ vulnerability

CVSS
6.1
EPSS
8.2%
EPSS pct
94th
Exploited
No known
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.
Affected vendor
Mailcow
Affected product
Mailcow\
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
Weakness type (CWE)
  • CWE-79 — Cross-Site Scripting (XSS)
Published
2024-04-04

Risk analysis

Based on its CVSS vector, this vulnerability is exploitable from an adjacent network, high attack complexity, requiring low privileges, user interaction. Successful exploitation leads to high impact to confidentiality, high impact to integrity.

Its EPSS score of 8.2% reflects a lower probability of exploitation activity in the wild over the next 30 days, placing it above 94% of all scored CVEs.

Check your external exposure to CVE-2024-31204

  • Confirm whether Mailcow Mailcow\ is running on any internet-facing host or subdomain.
  • Match discovered service fingerprints against the version affected by CVE-2024-31204.
  • Prioritise remediation if the asset is public, business-critical, or near authentication/payment flows.

How ThreatPort helps with CVE-2024-31204

ThreatPort's external attack surface scanner checks your internet-facing assets — agentlessly, from the outside in — for the exposed services and versions that CVE-2024-31204 affects, then prioritises the finding by real risk using CISA KEV and FIRST.org EPSS.

Run a free external exposure scan

Are you exposed to CVE-2024-31204?

Run an instant, non-intrusive external scan to check your attack surface for CVE-2024-31204.

Start free scan

No credit card. Agentless.