CVE-2025-53909 mailcow: dockerized vulnerable to SSTI in Quota and Quarantine Notification Template

Critical 9.1 Published Updated

An admin can achieve remote code execution via Server-Side Template Injection in mailcow notification templates.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-53909?

CVE-2025-53909 is a critical code injection vulnerability in mailcow-dockerized, published on 17 Jul 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

mailcow: dockerized is an open source groupware/email suite based on docker. A Server-Side Template Injection (SSTI) vulnerability exists in versions prior to 2025-07 in the notification template system used by mailcow for sending quota and quarantine alerts. The template rendering engine allows template expressions that may be abused to execute code in certain contexts. The issue requires admin-level access to mailcow UI to configure templates, which are automatically rendered during normal system operation. Version 2025-07 contains a patch for the issue.

Weakness: CWE-1336

Which versions are affected by CVE-2025-53909?

It affects 1 product.

Products include Mailcow Mailcow\.

How do I fix CVE-2025-53909?

No fix has been published for CVE-2025-53909 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-53909 being exploited?

There is no known exploitation of CVE-2025-53909 in the wild and no public exploit code.

Sources

Also known as GHSA-8p7g-6cjj-wr9m.

Is CVE-2025-53909 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free