CVE-2025-53909CWE-1336

mailcow: dockerized vulnerable to SSTI in Quota and Quarantine Notification Template

Critical · published July 17, 2025

CVSS v3.1
9.1
EPSS
1%
Percentile
44.5
In the wild
Unconfirmed
What it is

🚨 Admin access is a must for this one! A sneaky Server-Side Template Injection (SSTI) vulnerability in mailcow could let attackers run arbitrary code if they can configure templates — like a mischievous chef slipping in a secret ingredient before the dish is served! 🔥 Think of template rendering like a restaurant kitchen that trusts the head chef to write down the daily specials. If that chef could write any recipe without oversight, they might sneak in ingredients that don’t belong, leading to a wildly unpredictable meal! With this vulnerability, an attacker who gains admin-level access could execute arbitrary code, allowing them to manipulate the system, steal sensitive data, or even take complete control over the mail server. This could be absolutely devastating for your organization, exposing critical information and disrupting normal operations.

Put simply

Think of template rendering like a restaurant kitchen that trusts the head chef to write down the daily specials. If that chef could write any recipe without oversight, they might sneak in ingredients that don’t belong, leading to a wildly unpredictable meal! This SSTI vulnerability exists in versions of mailcow prior to 2025-07, where the template rendering engine fails to properly sanitize user input, allowing code execution when templates are processed during system alerts.

What to do

With this vulnerability, an attacker who gains admin-level access could execute arbitrary code, allowing them to manipulate the system, steal sensitive data, or even take complete control over the mail server. This could be absolutely devastating for your organization, exposing critical information and disrupting normal operations. To protect your mailcow instance, immediately upgrade to version 2025-07 or later to patch this vulnerability. Additionally, ensure that only trusted admins have access to configure templates, and consider reviewing your template configurations for any suspicious entries. You've got this! With a quick upgrade, you’ll lock down your email environment and keep those pesky intruders at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00537 · 44.5th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2025-07-17T13:47Z
EPSS history
Timeline
  • 17 JUL 13:47Z
    mailcow: dockerized vulnerable to SSTI in Quota and Quarantine Notification Template
    cvelistv5